Pretty sure the answer is no, but who knows
Is it possible to have a backup font?
Is it possible to have a backup font?
So I have a font A that I really like for standard characters. But then I need some extra unusual glyphs that I have with font B. Is it possible like in CSS to specify / register two fonts, then when the system cannot find a specific glyph in font A, it searches font B?
Pretty sure the answer is no, but who knows
Pretty sure the answer is no, but who knows
Re: Is it possible to have a backup font?
Thank you for your reply, but it's a different problem. Your problem is "if the system doesn't find my font", my problem is "if the system doesn't find the glyph". In my scenario, both fonts are registered and really exist in the system.
(and I realise that's CSS does exactly that; it fixes your problem, but not mine - probably hard to detect if a glyph exists or not?)
Re: Is it possible to have a backup font?
I think you have to do this yourself: define your string somehow and render it into a custom gadget, like a canvas.
On the other hand: create your own font that fits your needs.
On the other hand: create your own font that fits your needs.
Good morning, that's a nice tnetennba!
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
Re: Is it possible to have a backup font?
May be using a character list and a procedure to verify if the glyph exist or not?.
if result="" then glyph not exist or maybe another character when is empty depend of the font. (some times are filled with arbitrary character, inspect your font)
If result=""
font= glyphFont
Else
font= textFont
Endif
Is only an idea. Idk if we are speaking about same thing... (because is sunday, im in the beach and i have a box of beers)
if result="" then glyph not exist or maybe another character when is empty depend of the font. (some times are filled with arbitrary character, inspect your font)
If result=""
font= glyphFont
Else
font= textFont
Endif
Is only an idea. Idk if we are speaking about same thing... (because is sunday, im in the beach and i have a box of beers)
If translation=Error: reply="Sorry, Im Spanish": Endif
Re: Is it possible to have a backup font?
Invalid characters do not return "", but a generic square. What I will end up doing is to take the glygh number (with 'glyph') and check that instead.
Re: Is it possible to have a backup font?
I guess you have to do that by yourself.
For example windows always tries to find a character set, and that probably also applies to individual characters.
But that's far too specific for me to go into in any more detail...
See for yourself on M$ help pages or in the similar documentation of the OS you use, ...
For example windows always tries to find a character set, and that probably also applies to individual characters.
But that's far too specific for me to go into in any more detail...
See for yourself on M$ help pages or in the similar documentation of the OS you use, ...
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).

