When set the font in WM, it shows errors:
Notion startup error log:
>> Could not load font "-wenquanyi-*-medium-*-*-*-12-*-*-*-*-*-iso10646-1", trying "fixed"
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Could you either install the wenquanyi X font (in Debian it's in package xfonts-wqy) or choose a font for which you know for a fact it displays these characters you're interested in correctly?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Oh my goodness, it works normally by using "-*-ar pl new sung-*-*-*-*-*-*-*-*-*-*-iso10646-*" in xfontsel and the title bar :D
So the problem is just that "-*-*-*-*-*-*-*-*-*-*-*-*-iso10646-*" doesn't select fonts for CJK characters......
If there's wiki page, I would like to write down the details. Relative resources seems rare in Chinese environment.
Anyways, thanks a lot in the helping for these days :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
We do have a wiki, but it's not currently publicly editable. If you prepare some words I'd be happy to consider them for inclusion though.
So this basically works fine in Notion. Nonetheless, it cost us quite some effort, to figure this out. What can we do to improve things?
* Log which font is actually chosen for a pattern
* Recommend a tool to show how a given text is rendered in that font
* Should we double-check the font you used previously is actually incorrect, and the error was not caused by us handling it incorrectly somehow? Do you know exactly which font it was?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
> * Log which font is actually chosen for a pattern
notion does output this to screen, which is visible when I use `startx' command.
It also shows a xmessage window contains the incapablity of selecting ""-wenquanyi-*-medium-*-*-*-12-*-*-*-*-*-iso10646-1"
> * Recommend a tool to show how a given text is rendered in that font
xfontsel should be fine, and fc-list / fc-match (the ones I used) is improper. Though xfontsel may not list some font sizes that are also supported by notion. It shows only the sizes can be applied to xterm (which is a smaller set).
> * Should we double-check the font you used previously is actually incorrect, and the error was not caused by us handling it incorrectly somehow? Do you know exactly which font it was?
I am quite certain it's caused by using incorrect font, for that the result changes when I change the font setting in notion. The incorrect font is `WenQuanYi Bitmap Song'.
I also found some interesting things:
1. The bitmap font, WenQuanYi Bitmap Song, is in PCF format but cannot be used nor shown in xfontsel. In contrast, my working font, ar pl new sung, is in TTF/TTC format. This quite surprises me. I'd thought PCF font is usable in xfontsel and TTF is not. But in this case, the result reverses.
2. By setting "-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-iso10646-*" in the configuration file, Archlinux does not fallback to CJK fonts when the sample characters are. But this seems automatically be done in Debian. Maybe we can notice this.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The pattern is logged when the font is not found, but the selected font is not logged when a matching font is found, right?
By default xfontsel only shows the sizes available without scaling. If you enable scaling ('-scaled'), you'll get matching options, right?
The problem I see with xfontsel that we can't use it to test how UTF-8 strings are rendered when a non-iso10646 font is rendered. Or is this predictable?
You mention that you have problems with the 'WenQuanYi Bitmap Song' font, and that you cannot select any wenquanyi font. Is the problem with 'WenQuanYi Bitmap Song' that it cannot be found or that it is found but shows incorrect characters?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
> The pattern is logged when the font is not found, but the selected font is not logged when a matching font is found, right?
Right, it's not logged when matched. I guess I have the clue on how to do it.
> By default xfontsel only shows the sizes available without scaling. If you enable scaling ('-scaled'), you'll get matching options, right?
Right, I found the those sizes when '-scaled' is applied, thanks for your information.
> The problem I see with xfontsel that we can't use it to test how UTF-8 strings are rendered when a non-iso10646 font is rendered. Or is this predictable?
Seems unpredictable, the glyphs shown in `xfontsel -sample` mismatch to the glyphs shown in title bar.
> You mention that you have problems with the 'WenQuanYi Bitmap Song' font, and that you cannot select any wenquanyi font. Is the problem with 'WenQuanYi Bitmap Song' that it cannot be found or that it is found but shows incorrect characters?
The font cannot be found in xfontsel command but can be listed in fc-list command, though it's in PCF format.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What if you use "-wenquanyi-*-medium-*-*-*-12-*-*-*-*-*-iso10646-1" as the font?
It shows 'no names match' in xfontsel and I cannot find any string similar to wenquanyi in fndry or fmly section from the UI.
When set the font in WM, it shows errors:
Notion startup error log:
>> Could not load font "-wenquanyi-*-medium-*-*-*-12-*-*-*-*-*-iso10646-1", trying "fixed"
Could you either install the wenquanyi X font (in Debian it's in package xfonts-wqy) or choose a font for which you know for a fact it displays these characters you're interested in correctly?
Oh my goodness, it works normally by using "-*-ar pl new sung-*-*-*-*-*-*-*-*-*-*-iso10646-*" in xfontsel and the title bar :D
So the problem is just that "-*-*-*-*-*-*-*-*-*-*-*-*-iso10646-*" doesn't select fonts for CJK characters......
If there's wiki page, I would like to write down the details. Relative resources seems rare in Chinese environment.
Anyways, thanks a lot in the helping for these days :)
Good to hear!
We do have a wiki, but it's not currently publicly editable. If you prepare some words I'd be happy to consider them for inclusion though.
So this basically works fine in Notion. Nonetheless, it cost us quite some effort, to figure this out. What can we do to improve things?
* Log which font is actually chosen for a pattern
* Recommend a tool to show how a given text is rendered in that font
* Should we double-check the font you used previously is actually incorrect, and the error was not caused by us handling it incorrectly somehow? Do you know exactly which font it was?
> * Log which font is actually chosen for a pattern
notion does output this to screen, which is visible when I use `startx' command.
It also shows a xmessage window contains the incapablity of selecting ""-wenquanyi-*-medium-*-*-*-12-*-*-*-*-*-iso10646-1"
> * Recommend a tool to show how a given text is rendered in that font
xfontsel should be fine, and fc-list / fc-match (the ones I used) is improper. Though xfontsel may not list some font sizes that are also supported by notion. It shows only the sizes can be applied to xterm (which is a smaller set).
> * Should we double-check the font you used previously is actually incorrect, and the error was not caused by us handling it incorrectly somehow? Do you know exactly which font it was?
I am quite certain it's caused by using incorrect font, for that the result changes when I change the font setting in notion. The incorrect font is `WenQuanYi Bitmap Song'.
I also found some interesting things:
1. The bitmap font, WenQuanYi Bitmap Song, is in PCF format but cannot be used nor shown in xfontsel. In contrast, my working font, ar pl new sung, is in TTF/TTC format. This quite surprises me. I'd thought PCF font is usable in xfontsel and TTF is not. But in this case, the result reverses.
2. By setting "-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-iso10646-*" in the configuration file, Archlinux does not fallback to CJK fonts when the sample characters are. But this seems automatically be done in Debian. Maybe we can notice this.
The pattern is logged when the font is not found, but the selected font is not logged when a matching font is found, right?
By default xfontsel only shows the sizes available without scaling. If you enable scaling ('-scaled'), you'll get matching options, right?
The problem I see with xfontsel that we can't use it to test how UTF-8 strings are rendered when a non-iso10646 font is rendered. Or is this predictable?
You mention that you have problems with the 'WenQuanYi Bitmap Song' font, and that you cannot select any wenquanyi font. Is the problem with 'WenQuanYi Bitmap Song' that it cannot be found or that it is found but shows incorrect characters?
> The pattern is logged when the font is not found, but the selected font is not logged when a matching font is found, right?
Right, it's not logged when matched. I guess I have the clue on how to do it.
> By default xfontsel only shows the sizes available without scaling. If you enable scaling ('-scaled'), you'll get matching options, right?
Right, I found the those sizes when '-scaled' is applied, thanks for your information.
> The problem I see with xfontsel that we can't use it to test how UTF-8 strings are rendered when a non-iso10646 font is rendered. Or is this predictable?
Seems unpredictable, the glyphs shown in `xfontsel -sample` mismatch to the glyphs shown in title bar.
> You mention that you have problems with the 'WenQuanYi Bitmap Song' font, and that you cannot select any wenquanyi font. Is the problem with 'WenQuanYi Bitmap Song' that it cannot be found or that it is found but shows incorrect characters?
The font cannot be found in xfontsel command but can be listed in fc-list command, though it's in PCF format.