Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
FreeType Font Extension Fixes #1288
I implemented the ability to find fonts by short names like "Arial" or "Times New Roman" using platform-provided methods. FreeType does not have any sort of abstraction for this and neither does SDL.
The GameMaker manual does specify that the function
However, I did try testing this in GMSv1.4.1804 and got the following error message whether I added the ttf extension or not:
It worked in GM8 however and so did this messed up code:
font1 = font_add("HGfffArialYG", 120, true, true, 0, 255);
There were no errors and the font was big, bold, and italic.
I also changed the font rendering to be 96 dpi to match LateralGM plugin changes I made.
Current Master (has 72 dpi)
This pull request (has 96 dpi)
@@ Coverage Diff @@ ## master #1288 +/- ## ========================================== + Coverage 16.74% 17.18% +0.44% ========================================== Files 164 164 Lines 17095 17099 +4 ========================================== + Hits 2862 2939 +77 + Misses 14233 14160 -73