You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I feel kind of bad for creating two issues revolving around same particular font (Iosevka)
No problem with that; however, this is a duplicate of #573.
If you can help out with why and how font fallback works in st but not in mintty, that would be great.
It would be good to identify the font fallback procedure in fontconfig, or maybe X11, on Windows, so it could be reused for mintty.
Or maybe there is a library already that could be used for this purpose?
I have zero experience in developing on Windows, but after searching for some time I've found the following thread which might be useful. I copy here the most interesting part, a ExtTextOutW wrapper which apparently solve this issue:
Thanks a lot for digging this out. It works indeed for missing characters. For others (like Arabic) it seems to break proper display, however.
Also there is still a positioning inconsistency, as also mentioned in your references, along with an idea to fix it.
These issues need to be checked.
This does not solve all font fallback cases, though.
I am using Consolas which does not contain Hebrew characters. Attempting to display Hebrew fails without even showing a box character - just an empty space. Using Windows Font Linking as mentioned in #573 also doesn't help even though it works for me in cmd.exe.
Can Uniscribe rendering be enabled for RTL when --nobidi has been passed in?
Why does font linking not help? Why am I not at least shown a box character? (not that a box character will help much, just it seems as though Hebrew characters are being explicitly filtered out).
The box glyph is taken from the font, so it may vary, even with font fallback.
Why would you use the --nobidi option, actually?
Uniscribe for RTL may be an option.
Mined should be disabling the scrollbar when it detects a bidi terminal; does that not always work?
With the bidi controls enabled, this would no longer be necessary.
While implementing partial support for bidi markers, it became apparent that this is not sufficient to control absolute positioning (like for the application scrollbar or menu). A switching sequence may be added.
I'm using Monofur NF and the font itself is missing some symbols (I've tested it with both mitty, notepad and notepad++). From what I've read uniscribe is supposed to replace the missing symbols from a list of available fonts. I have a font with the missing symbols installed (DejaVuSans NF), but the symbol is still replaced by a box. Is there an option to provide a list of fallback fonts?
Search for Microsoft Windows Font Linking for how to set up fallback fonts.
Registry entries to tweak at: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink
Activity
mintty commentedon Oct 23, 2016
No problem with that; however, this is a duplicate of #573.
If you can help out with why and how font fallback works in st but not in mintty, that would be great.
Perlence commentedon Oct 23, 2016
I think, fontconfig is responsible for font fallback, because st is an X11 application http://git.suckless.org/st/tree/st.c#n3711
mintty commentedon Oct 23, 2016
It would be good to identify the font fallback procedure in fontconfig, or maybe X11, on Windows, so it could be reused for mintty.
Or maybe there is a library already that could be used for this purpose?
arcanis commentedon Nov 5, 2016
I have zero experience in developing on Windows, but after searching for some time I've found the following thread which might be useful. I copy here the most interesting part, a
ExtTextOutWwrapper which apparently solve this issue:Another interesting thread on StackOverflow: http://stackoverflow.com/questions/16828868/how-to-automatically-choose-most-suitable-font-for-different-language
mintty commentedon Nov 5, 2016
Thanks a lot for digging this out. It works indeed for missing characters. For others (like Arabic) it seems to break proper display, however.
Also there is still a positioning inconsistency, as also mentioned in your references, along with an idea to fix it.
These issues need to be checked.
mintty commentedon Nov 15, 2016
ScriptStringAnalysecan be fixed to obey the monospace character distribution by adding the piDx parameter. But:If someone demonstrates how this can be managed, we'll get a step further...
option UnderlineManual, Uniscribe support for left-to-right text (#573,
mintty commentedon Dec 4, 2016
Released Uniscribe support in 2.7.1.
This does not solve all font fallback cases, though.
change default FontRender=uniscribe (#605, #573)
mintty commentedon Mar 11, 2017
Released 2.7.5 with default FontRender=uniscribe.
yossizahn commentedon Mar 25, 2017
I am using Consolas which does not contain Hebrew characters. Attempting to display Hebrew fails without even showing a box character - just an empty space. Using Windows Font Linking as mentioned in #573 also doesn't help even though it works for me in cmd.exe.
mintty commentedon Mar 25, 2017
The box glyph is taken from the font, so it may vary, even with font fallback.
Why would you use the --nobidi option, actually?
Uniscribe for RTL may be an option.
6 remaining items
mintty commentedon Apr 2, 2017
Mined should be disabling the scrollbar when it detects a bidi terminal; does that not always work?
With the bidi controls enabled, this would no longer be necessary.
support bidi implicit, override, embedding, isolate marks (#392, ~#605)
mintty commentedon Apr 12, 2017
While implementing partial support for bidi markers, it became apparent that this is not sufficient to control absolute positioning (like for the application scrollbar or menu). A switching sequence may be added.
option and escape sequences to disable bidi (#592, #392, ~#605)
mintty commentedon Apr 13, 2017
Released 2.7.6.
fix bidi display while showing other screen with Bidi=1 (#592, ~#392, ~…
mintty commentedon May 19, 2017
Released 2.7.7.
option UnderlineManual, Uniscribe support for left-to-right text (min…
change default FontRender=uniscribe (mintty#605, mintty#573)
ducklin5 commentedon Aug 28, 2019
I'm using Monofur NF and the font itself is missing some symbols (I've tested it with both mitty, notepad and notepad++). From what I've read uniscribe is supposed to replace the missing symbols from a list of available fonts. I have a font with the missing symbols installed (DejaVuSans NF), but the symbol is still replaced by a box. Is there an option to provide a list of fallback fonts?
ducklin5 commentedon Aug 28, 2019
I also tried
BrianInglis commentedon Aug 28, 2019
Search for Microsoft Windows Font Linking for how to set up fallback fonts.
Registry entries to tweak at:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLinkBrianInglis commentedon Aug 28, 2019
Suitable fonts e.g. SIL Unicode BMP Fallback,, Unicode Last Resort, and GNU Unifont, are explained, named, and linked in Wikipedia
mintty commentedon Aug 29, 2019
Commonis not supported as it covers a set of basic punctuation and other symbols, not a script.mintty commentedon Mar 20, 2022
For right-to-left scripts there is now a generic implicit font fallback mechanism: #1148