소스 검색

Add documentation for the DynamicFont hinting property

Hugo Locurcio 7 년 전
부모
커밋
a0ddd6122c
1개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  1. 12 0
      doc/classes/DynamicFontData.xml

+ 12 - 0
doc/classes/DynamicFontData.xml

@@ -16,7 +16,19 @@
 		<member name="font_path" type="String" setter="set_font_path" getter="get_font_path">
 			The path to the vector font file.
 		</member>
+		<member name="hinting" type="int" setter="set_hinting" getter="get_hinting" enum="DynamicFontData.Hinting">
+			The font hinting mode used by FreeType.
+		</member>
 	</members>
 	<constants>
+		<constant name="HINTING_NONE" value="0" enum="Hinting">
+			Disable font hinting (smoother but less crisp).
+		</constant>
+		<constant name="HINTING_LIGHT" value="1" enum="Hinting">
+			Use the light font hinting mode.
+		</constant>
+		<constant name="HINTING_NORMAL" value="2" enum="Hinting">
+			Use the default font hinting mode (crisper but less smooth).
+		</constant>
 	</constants>
 </class>