CreateTrueTypeFontVariation

Text, fonts, variable fonts

คำอธิบาย

ยกร่างฟอนต์ TrueType แบบ variable ที่พิกัด design-axis ที่ขอ แล้วเพิ่มฟอนต์ static ที่ได้เข้าเอกสารปัจจุบัน

ไวยากรณ์

Delphi

Function TPDFlib.CreateTrueTypeFontVariation(FontID: Integer; Const AxisCoordinates: WideString): Integer;

พารามิเตอร์

FontIDแฮนเดิลฟอนต์แบบแปรผัน TrueType ที่ API สร้างหรือโหลดฟอนต์คืนมา
AxisCoordinatesComma- or semicolon-separated tag=value pairs such as wght=700,wdth=75; omitted axes use their defaults and values outside a declared range are clamped

ค่าที่ส่งคืน

Returns a positive font handle and selects it on success, or 0 for an invalid handle, unknown or malformed coordinate, unsupported outline format or malformed variation data

หมายเหตุ

ตัวยกร่างใช้ gvaravarHVARMVAR แบบ normalized

SaveFontToFile segment maps, GetFontVariationAxes เมตริกแนวนอนและ 0 เมตริก global รวมถึง interpolation แบบ IUP กับการแปลง composite-glyph โครง composite ถูกแผ่ให้แบนและเขียนเป็นกลิฟธรรมดา, เมตริกแนวนอนกับขอบฟอนต์ถูกสร้างใหม่, ตาราง hinting กับ device-metric ที่ล้าสมัยถูกลบทิ้ง และ sfnt เอาต์พุตได้ checksum ใหม่

ฟอนต์ที่คืนเป็นฟอนต์ TrueType static ธรรมดาที่ใช้กับการวาด การฝัง การทำซับเซ็ต การไล่กลิฟ และ glyf ได้, CreateOpenTypeFontVariation คืนค่า CFF2 สำหรับมันAPI นี้ต้องการ

ดูเพิ่มเติม

GetFontVariationAxes, CreateOpenTypeFontVariation, SaveFontToFile, GetFontGlyphOutline