Font that was once rendering correctly, now shows empty boxes #354

Closed
opened 2026-01-30 21:49:46 +00:00 by claunia · 14 comments
Owner

Originally created by @burhan on GitHub (Aug 30, 2018).

I am on Windows 10 Pro 1803 (17134.228) on a Dell XPS 15 9570 with the 4K screen (not sure if this matters).

I have been using "Ubuntu mono derivative Powerline" without issues on WSL. Yesterday I noticed that my zsh prompt no longer renders the font correctly; it now shows empty boxes instead of >>> (three arrows).

image

Here is what it used to look like:

photo_2018-08-30_11-37-50

I'm really not sure what triggered this; here is my Windows Update log:

image

Originally created by @burhan on GitHub (Aug 30, 2018). I am on Windows 10 Pro 1803 (17134.228) on a Dell XPS 15 9570 with the 4K screen (not sure if this matters). I have been using "Ubuntu mono derivative Powerline" without issues on WSL. Yesterday I noticed that my zsh prompt no longer renders the font correctly; it now shows empty boxes instead of >>> (three arrows). ![image](https://user-images.githubusercontent.com/603112/44839975-bfc85480-ac48-11e8-889a-c84b9af3bddb.png) Here is what it used to look like: ![photo_2018-08-30_11-37-50](https://user-images.githubusercontent.com/603112/44840449-b986a800-ac49-11e8-8002-908865053cd4.jpg) I'm really not sure what triggered this; here is my Windows Update log: ![image](https://user-images.githubusercontent.com/603112/44840570-f81c6280-ac49-11e8-9de1-14ebba65edb0.png)
Author
Owner

@bitcrazed commented on GitHub (Aug 30, 2018):

Hey @burhan - in the erroneous case, what font is your Console using?

@bitcrazed commented on GitHub (Aug 30, 2018): Hey @burhan - in the erroneous case, what font is your Console using?
Author
Owner

@burhan commented on GitHub (Aug 30, 2018):

The same font, I haven't changed the console settings.

On Thu, Aug 30, 2018, 7:07 PM Rich Turner notifications@github.com wrote:

Hey @burhan https://github.com/burhan - in the erroneous case, what
font is your Console using?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/console/issues/243#issuecomment-417374775,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAkz6NeU-xqShgtZjZOl1GmeVvQlVKwNks5uWA3BgaJpZM4WTCRS
.

--

--
Burhan Khalid
Sent from a mobile device

@burhan commented on GitHub (Aug 30, 2018): The same font, I haven't changed the console settings. On Thu, Aug 30, 2018, 7:07 PM Rich Turner <notifications@github.com> wrote: > Hey @burhan <https://github.com/burhan> - in the erroneous case, what > font is your Console using? > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/Microsoft/console/issues/243#issuecomment-417374775>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AAkz6NeU-xqShgtZjZOl1GmeVvQlVKwNks5uWA3BgaJpZM4WTCRS> > . > -- -- Burhan Khalid Sent from a mobile device
Author
Owner

@zadjii-msft commented on GitHub (Aug 30, 2018):

Are you sure that the font is still installed?

It's possible that the Ubuntu app got updated - I don't believe that should change the console settings, but it might have. Can you post a screenshot of the font dialog?
image

None of those updates should have anything to do with conhost, so there must be something else at work here.

@zadjii-msft commented on GitHub (Aug 30, 2018): Are you sure that the font is still installed? It's possible that the Ubuntu app got updated - I don't believe that should change the console settings, but it might have. Can you post a screenshot of the font dialog? ![image](https://user-images.githubusercontent.com/18356694/44868133-c3ef7480-ac3e-11e8-862d-9e57cd392d98.png) None of those updates should have anything to do with conhost, so there must be something else at work here.
Author
Owner

@bitcrazed commented on GitHub (Aug 30, 2018):

@Burhan: And do you have a link to the font you're using? Is it this one?

@bitcrazed commented on GitHub (Aug 30, 2018): @Burhan: And do you have a link to the font you're using? Is it [this one](https://github.com/powerline/fonts/tree/master/UbuntuMono)?
Author
Owner

@burhan commented on GitHub (Aug 30, 2018):

The font is installed as per the properties window.

image

The font installed is the same one as in your link @bitcrazed

I am not sure if this is related, but in VS code, the font renders correctly

image

In cmd.exe properties, the font shows and its used by default correctly:

image

@burhan commented on GitHub (Aug 30, 2018): The font is installed as per the properties window. ![image](https://user-images.githubusercontent.com/603112/44874105-cc799680-aca2-11e8-8390-780541bdbb60.png) The font installed is the same one as in your link @bitcrazed I am not sure if this is related, but in VS code, the font renders correctly ![image](https://user-images.githubusercontent.com/603112/44874322-7fe28b00-aca3-11e8-8450-fc7eb1f30b91.png) In `cmd.exe` properties, the font shows and its used by default correctly: ![image](https://user-images.githubusercontent.com/603112/44874783-fd5acb00-aca4-11e8-9bf0-54d2a96ed1b0.png)
Author
Owner

@bitcrazed commented on GitHub (Aug 30, 2018):

Could you share your zsh configuration declaring the color chevrons?

i.e. echo $PROMPT

@bitcrazed commented on GitHub (Aug 30, 2018): Could you share your zsh configuration declaring the color chevrons? i.e. `echo $PROMPT`
Author
Owner

@burhan commented on GitHub (Aug 30, 2018):

image

${SSH_TTY:+"%F{9}%n%f%F{7}@%f%F{3}%m%f "}%F{4}${_prompt_sorin_pwd}%(!. %B%F{1}#%f%b.)${editor_info[keymap]}

@burhan commented on GitHub (Aug 30, 2018): ![image](https://user-images.githubusercontent.com/603112/44883644-7e738b80-acc0-11e8-8df9-50aa44aa6fc9.png) `${SSH_TTY:+"%F{9}%n%f%F{7}@%f%F{3}%m%f "}%F{4}${_prompt_sorin_pwd}%(!. %B%F{1}#%f%b.)${editor_info[keymap]}`
Author
Owner

@bitcrazed commented on GitHub (Aug 31, 2018):

And what does your .~/zshrc look like?

And any other steps you took to configure your prompt to use that theme would be useful. Difficult to diagnose unless we can repro.

@bitcrazed commented on GitHub (Aug 31, 2018): And what does your `.~/zshrc` look like? And any other steps you took to configure your prompt to use that theme would be useful. Difficult to diagnose unless we can repro.
Author
Owner

@burhan commented on GitHub (Aug 31, 2018):

I am using Prezto, and the .zshrc is pretty stock:

burhan@xps:~$ cat ~/.zshrc
#
# Executes commands at the start of an interactive session.
#
# Authors:
#   Sorin Ionescu <sorin.ionescu@gmail.com>
#

# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
  source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi

# Customize to your needs...

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
    test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
    alias ls='ls --color=auto'
    alias dir='dir --color=auto'
    #alias vdir='vdir --color=auto'

    alias grep='grep --color=auto'
    alias fgrep='fgrep --color=auto'
    alias egrep='egrep --color=auto'
fi
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"

Here is the Prezto configuration (the customized parts, removed the commented parts for brevity):

zstyle ':prezto:*:*' color 'yes'
zstyle ':prezto:load' pmodule \
  'environment' \
  'terminal' \
  'editor' \
  'history' \
  'directory' \
  'spectrum' \
  'git' \
  'utility' \
  'completion' \
  'syntax-highlighting' \
  'history-substring-search' \
  'prompt'
zstyle ':prezto:module:autosuggestions:color' found ''
zstyle ':prezto:module:completion:*:hosts' etc-host-ignores \
   '0.0.0.0' '127.0.0.1'
zstyle ':prezto:module:editor' key-bindings 'vi'
zstyle ':prezto:module:editor' dot-expansion 'yes'
zstyle ':prezto:module:history-substring-search:color' found ''
zstyle ':prezto:module:history-substring-search:color' not-found ''
zstyle ':prezto:module:history-substring-search' globbing-flags ''
zstyle ':prezto:module:prompt' theme 'sorin'
zstyle ':prezto:module:syntax-highlighting' highlighters \
   'main' \
   'brackets' \
   'pattern' \
   'line' \
   'cursor' \
   'root'
zstyle ':prezto:module:syntax-highlighting' pattern \
   'rm*-rf*' 'fg=white,bold,bg=red'
zstyle ':prezto:module:terminal' auto-title 'yes'
zstyle ':prezto:module:terminal:multiplexer-title' format '%s'
@burhan commented on GitHub (Aug 31, 2018): I am using Prezto, and the `.zshrc` is pretty stock: ``` burhan@xps:~$ cat ~/.zshrc # # Executes commands at the start of an interactive session. # # Authors: # Sorin Ionescu <sorin.ionescu@gmail.com> # # Source Prezto. if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" fi # Customize to your needs... # enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' alias dir='dir --color=auto' #alias vdir='vdir --color=auto' alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' fi export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init -)" export PATH="$HOME/.rbenv/bin:$PATH" eval "$(rbenv init -)" export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH" ``` Here is the Prezto configuration (the customized parts, removed the commented parts for brevity): ``` zstyle ':prezto:*:*' color 'yes' zstyle ':prezto:load' pmodule \ 'environment' \ 'terminal' \ 'editor' \ 'history' \ 'directory' \ 'spectrum' \ 'git' \ 'utility' \ 'completion' \ 'syntax-highlighting' \ 'history-substring-search' \ 'prompt' zstyle ':prezto:module:autosuggestions:color' found '' zstyle ':prezto:module:completion:*:hosts' etc-host-ignores \ '0.0.0.0' '127.0.0.1' zstyle ':prezto:module:editor' key-bindings 'vi' zstyle ':prezto:module:editor' dot-expansion 'yes' zstyle ':prezto:module:history-substring-search:color' found '' zstyle ':prezto:module:history-substring-search:color' not-found '' zstyle ':prezto:module:history-substring-search' globbing-flags '' zstyle ':prezto:module:prompt' theme 'sorin' zstyle ':prezto:module:syntax-highlighting' highlighters \ 'main' \ 'brackets' \ 'pattern' \ 'line' \ 'cursor' \ 'root' zstyle ':prezto:module:syntax-highlighting' pattern \ 'rm*-rf*' 'fg=white,bold,bg=red' zstyle ':prezto:module:terminal' auto-title 'yes' zstyle ':prezto:module:terminal:multiplexer-title' format '%s' ```
Author
Owner

@be5invis commented on GitHub (Oct 7, 2018):

Deja Vu seems not cover these angle brackets and Console need to support font fallback to display them.
Therefore, Get rid of GDI ASAP please!

@be5invis commented on GitHub (Oct 7, 2018): Deja Vu seems not cover these angle brackets and Console need to support font fallback to display them. Therefore, Get rid of GDI ASAP please!
Author
Owner

@mikedld commented on GitHub (Oct 13, 2018):

@burhan, The fonts in provided VS Code and cmd.exe screenshots look different to the naked eye. While the one in cmd.exe definitely looks like Ubuntu Mono, the VS Code one most certainly doesn't.

@mikedld commented on GitHub (Oct 13, 2018): @burhan, The fonts in provided VS Code and cmd.exe screenshots look different to the naked eye. While the one in cmd.exe definitely looks like Ubuntu Mono, the VS Code one most certainly doesn't.
Author
Owner

@qidydl commented on GitHub (Jan 21, 2021):

I wonder if this is the same problem as #3257? There's a lot more discussion there and a potential workaround, selecting "Install for all users" on the font may get it working properly.

@qidydl commented on GitHub (Jan 21, 2021): I wonder if this is the same problem as #3257? There's a lot more discussion there and a potential workaround, selecting "Install for all users" on the font may get it working properly.
Author
Owner

@zadjii-msft commented on GitHub (Aug 16, 2022):

Hey so this was filed like, four years ago, and obviously there's been a lot of work done since then. Is this still happening? I think we added some better support for unsupported glyphs in the console in the latest Win11 bits. Then there's also the Terminal, which may have never had this issue at all. We never did nail down a specific repro for this one, so maybe it's gone/?

@zadjii-msft commented on GitHub (Aug 16, 2022): Hey so this was filed like, four years ago, and obviously there's been a lot of work done since then. Is this still happening? I think we added some better support for unsupported glyphs in the console in the latest Win11 bits. Then there's also the Terminal, which may have never had this issue at all. We never did nail down a specific repro for this one, so maybe it's gone/?
Author
Owner

@ghost commented on GitHub (Aug 20, 2022):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost commented on GitHub (Aug 20, 2022): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#354