|
Glyph Keeper with restricted font embeddability |
Marek Ratajczak
Member #18,974
December 2020
|
Dear Forum Members, Has anyone an experience with loading and rendering TTF fonts which are marked as "Restricted font embeddability", using Glyph Keeper ? It's Allegro 4, in my case 64bit, but it's not important, and Glyph Keeper 0.32, which works for me incredibly well, except of some fonts, and I realised they are restricted. I'm thinking about such fonts like techic_.ttf, techb___.ttf, techl___.ttf (copyrighted by Payne Loving Trust, and possibly coming with Autocad package or Autodesk DWG viewers etc, but maybe they are also come with regular Windows 10). Kind regards, |
SiegeLord
Member #7,827
October 2006
|
Allegro 5 can load those fonts fine. It uses FreeType, and from what I can see Glyph Keeper uses FreeType as well, but it's bundled version might be too old? Try compiling it with a more up-to-date FreeType perhaps. "For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18 |
Marek Ratajczak
Member #18,974
December 2020
|
I just compiled Glyph Keeper with very up-to-date FreeType 2 (with just those small changes previously done by Kirill for compatibility with his program) - surprisingly - compiled with success, just adding one extra obj to compile what in the meantime appeared to be necessary, and what is sdf.obj, but when I linked lib with my program, I got the same . It's not rendering glyphs for restricted fonts, however is loading font without error. Also calculating the size of each glyph is wrong (width zero pxl for any character). |
amarillion
Member #940
January 2001
|
Is there a reason you're using Glyph Keeper + Allegro 4 though? What are you using Glyph Keeper for that Allegro 5 can't do out of the box? -- |
Peter Hull
Member #1,136
March 2001
|
There are programs out there to modify the embeddability of the font file - the first thing I'd do is modify the fonts to confirm that it because the fonts are restricted and not just a coincidence that those fonts have some other feature that G.K. doesn't like. (the embeddability or otherwise is just a flag in one of the file chunks, it's not like the font data is encrypted - see https://docs.microsoft.com/en-us/typography/opentype/spec/os2#fstype) Then we're looking at maybe fixing a bug in Glyph Keeper - for example zero width glyphs, as you mentioned, maybe do load but render invisibly? (also - Glyph Keeper is very hard to google for, Magic the Gathering seems have taken over )
|
|