Explorar o código

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 %!s(int64=6) %!d(string=hai) anos
pai
achega
fd53c4c848
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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 }