|
From: Roland H. <ro...@lo...> - 2023-07-03 12:18:44
|
Read the instructions/text at the bottom of the GitHub page. Don't actually use the thing and tweak your fallback information without fully understanding. While Windows ships with many fonts, Arial is one of the few System fonts. That means it is used by the OS as a default for menus, message text, etc. It will be one of the few you find configured for fallback in the Registry. Windows also has Font linking. https://superuser.com/questions/396160/how-to-change-configure-font-fallback https://learn.microsoft.com/en-us/globalization/input/font-technology On 7/3/2023 7:08 AM, John Selverian wrote: > Font substitution only happens with Ariel font not others. I thought > it would work for all or none. I guess I still don’t fully understand. > > Kind regards, > > js > > >> On Jul 3, 2023, at 7:30 AM, Roland Hughes via Foxgui-users >> <fox...@li...> wrote: >> >> You don't understand because you didn't read the link I sent about >> Font Fallback. >> >> There is a font fallback registry in windows. Here is a bit of >> reading on that. >> >> https://github.com/Jamesits/windows-10-font-fallback-reg >> >> Here is the original link about font fallback. >> >> https://learn.microsoft.com/en-us/windows/win32/intl/using-font-fallback >> >> Font fallback doesn't happen by default. >> >> Without looking at the code I will state FXFontSelector enables font >> fallback in its configuring of the font and rendering of text but >> your application does not. >> >> Windows is different front Linux here. >> >> https://unix.stackexchange.com/questions/254423/unicode-fallback-font >> >> Most everything uses fontconfig library which defaults to the >> configured font fallback. >> >> On 7/2/2023 2:37 PM, John Selverian wrote: >>> I understand this. The "problem" is that Arial does not have a >>> the "subscript 2" character but it gets displayed properly in the >>> FXFontSelector. How does it do this? It does not display properly >>> in FXFontSelector for several other fonts which do not have the >>> "subscript 2" character...I just see the empty square character, >>> this is what I expect. >>> >>> js >>> >>> >>> -----Original Message----- >>> From: je...@fo... <je...@fo...> >>> Sent: Friday, June 30, 2023 1:18 PM >>> To: joh...@ja... >>> Cc: fox...@li... >>> Subject: Re: [Foxgui-users] unexpected behavior with >>> FXFontSelector >>> >>> On 2023-06-30 08:51, John Selverian wrote: >>>> I'm seeing something strange with FXFontSelector (Fox v1.7.50) >>>> >>>> >>>> >>>> I've added Unicode for a subscript 2 (\\u2082 <file://u2082> ) >>> to the >>>> preview text. >>>> >>>> >>>> >>>> I select Arial and it displays fine. Back in my program the >>> subscript >>>> 2 shows as an empty box indicating that the character does not >>> exist. >>>> >>>> >>>> My program should be correct since it displays the subscript 2 >>> fine >>>> with other fonts (like Segoe UI). >>>> >>>> >>>> >>>> I've also check with MS Word that the subscript 2 does not >>> exist in >>>> the Arial. >>>> >>>> >>>> >>>> My question is how/why does it display fine in the preview in >>>> FXFontSelector even though it does not exist in Arial? It even >>> looks >>>> like the Arial font. I see the same with other fonts not just >>> Arial. >>> >>> Make sure both are using the same font and pitch. Not all fonts >>> have the full unicode repertoire in them; in fact, most fonts >>> have only a fraction of the full repertoire of glyphs. >>> >>> -- JVZ >>> >>> >>> >>> _______________________________________________ >>> Foxgui-users mailing list >>> Fox...@li... >>> https://lists.sourceforge.net/lists/listinfo/foxgui-users >> >> -- >> Roland Hughes, President >> Logikal Solutions >> (630)-205-1593 (cell) >> http://www.theminimumyouneedtoknow.com >> http://www.infiniteexposure.net >> http://www.johnsmith-book.com >> >> >> >> _______________________________________________ >> Foxgui-users mailing list >> Fox...@li... >> https://lists.sourceforge.net/lists/listinfo/foxgui-users -- Roland Hughes, President Logikal Solutions (630)-205-1593 (cell) http://www.theminimumyouneedtoknow.com http://www.infiniteexposure.net http://www.johnsmith-book.com |