Getting the system fonts - Printable Version +- yab | yet another Basic for HAIKU (https://yab.orgfree.com/forum) +-- Forum: Programming in yab (https://yab.orgfree.com/forum/forumdisplay.php?fid=1) +--- Forum: Snippets (https://yab.orgfree.com/forum/forumdisplay.php?fid=3) +--- Thread: Getting the system fonts (/showthread.php?tid=84) |
Getting the system fonts - bbjimmy - 03-20-2017 yab did not include a way to determine the currently set system font. this library file should do the trick! https://github.com/bbjimmy/yab-lib/tree/master/getsystemfonts Code: //export sub getfont_family$(fonttype$) RE: Getting the system fonts - bbjimmy - 04-22-2017 I added a fallback, in case there is no font settings file. The file is now hosted on github: https://github.com/bbjimmy/yab-lib |