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?
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?)
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.
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)
Iftranslation=Error: reply="Sorry, Im Spanish": Endif
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, ...
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).