Преглед на файлове

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 години
родител
ревизия
fd53c4c848
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  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 }