FontMgr - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Expanding Horizons (Libraries) (https://qb64phoenix.com/forum/forumdisplay.php?fid=21) +---- Forum: a740g (https://qb64phoenix.com/forum/forumdisplay.php?fid=55) +---- Thread: FontMgr (/showthread.php?tid=2530) |
FontMgr - a740g - 03-20-2024 This is basically a continuation of some code I posted here. I originally planned this for an upcoming update to InForm-PE's UiEditor. However, while experimenting with this, it turned out to be nice little 4-function cross-platform library. I am sharing it here hoping it might be useful. The library has 4 functions: Code: (Select All)
Demo output: Update: Added functionality to read any string from the font name table like family name, style, full name, vendor, designer, copyright etc. RE: FontMgr - SMcNeill - 03-20-2024 These would be great to have natively in QB64 itself, in my humble opinion. RE: FontMgr - a740g - 03-20-2024 (03-20-2024, 03:01 AM)SMcNeill Wrote: These would be great to have natively in QB64 itself, in my humble opinion. I agree. We could easily add functions for getting the font name and the TTC font count by directly using the FreeType API. I'll need to do some more tests. RE: FontMgr - a740g - 03-20-2024 Added functionality to read any string from the font name table like family name, style, full name, vendor, designer, copyright etc. Added routine to probe bitmap fonts for supported font sizes. Updated library in the first post. Cheers! RE: FontMgr - a740g - 03-21-2024 Added fixes for macOS and Linux. Get the zip file in the first post. RE: FontMgr - SpriggsySpriggs - 03-22-2024 This is neat. Thanks, man. |