Browse Source

GetFont commented
(*Workaround:
If the font with a weight other than Bold is required, use a full name of the file (for ttf-fonts) with empty style.
For example: GetFont( "IBMPlexSans-SemiBold", 24, {} );
*)

git-svn-id: https://svn-dept.inf.ethz.ch/svn/lecturers/a2/trunk@8854 8c9fc860-2736-0410-a75d-ab315db34111

infsvn.durmanov 6 years ago
parent
commit
fd53c4c848
1 changed files with 4 additions and 0 deletions
  1. 4 0
      source/WMGraphics.Mod

+ 4 - 0
source/WMGraphics.Mod

@@ -922,6 +922,10 @@ BEGIN { EXCLUSIVE }
 	END
 END InstallFontManager;
 
+(*Workaround:
+	If the font with a weight other than Bold is required, use a full name of the file (for ttf-fonts) with empty style.
+	For example: GetFont( "IBMPlexSans-SemiBold", 24, {} );
+*)
 PROCEDURE GetFont*(CONST name : ARRAY OF CHAR; size : LONGINT; style : SET) : Font;
 VAR f : Font;
 BEGIN { EXCLUSIVE }