_LOADFONT example omission - Printable Version +- QB64 Phoenix Edition (https://staging.qb64phoenix.com) +-- Forum: Official Links (https://staging.qb64phoenix.com/forumdisplay.php?fid=16) +--- Forum: QB64 Phoenix Edition Wiki and Repo (https://staging.qb64phoenix.com/forumdisplay.php?fid=41) +---- Forum: Wiki Discussion (https://staging.qb64phoenix.com/forumdisplay.php?fid=25) +---- Thread: _LOADFONT example omission (/showthread.php?tid=1638) |
_LOADFONT example omission - mnrvovrfc - 04-24-2023 From this page: https://qb64phoenix.com/qb64wiki/index.php/LOADFONT The second example has "_FONT" statement missing. If the font doesn't exist, largely due to mistyping (which was driving me crazy just now trying to load "cyberbit.ttf" in current directory), then the example as it's presented right now isn't going to do anything about it. The code example should read like the following: Code: (Select All) i& = _NEWIMAGE(800, 600, 32) TIP: If you have Wine in your Linux installation and have run "winetricks corefonts", or any other way to populate the "Windows/Fonts" directory, then this statement could be used to load Times New Roman: Code: (Select All) f& = _LOADFONT("/home/user/.wine/drive_c/windows/Fonts/times.ttf", 25) 'normal style (replace "user" without double-quotation marks with the name of the user that is linked with the password for your regular account.) RE: _LOADFONT example omission - RhoSigma - 04-24-2023 (04-24-2023, 02:46 PM)mnrvovrfc Wrote: From this page: Page updated, thanks for reporting. |