CreateOpenTypeFontVariation

Text, fonts, variable fonts

תיאור

מממשים גופן משתנה OpenType CFF2 בקואורדינטות צירי עיצוב מבוקשות ומוסיפים את הגופן CFF הסטטי שנוצר למסמך הנוכחי

תחביר

Delphi

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

פרמטרים

FontIDידית גופן משתנה מסוג CFF2 שהוחזרה מ-API ליצירה או לטעינה של גופן OpenType
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, non-CFF2 font, unknown or malformed coordinate, unsupported CFF2 structure or malformed variation data

הערות

The instantiator evaluates vsindex and blend against the CFF2 variation store, expands local and global subroutines, applies HVAR horizontal metrics and supported MVAR global metrics, and synchronizes common style axesThe output is a checksum-correct CID-keyed CFF1 OpenType font with static charstrings and metrics; stale variation, hint-program and signature tables are removed

CharString recursion, operand stack usage, operation count, INDEX sizes and output size are bounded before allocation, so malformed input fails without returning a partial fontThe returned font works with drawing, embedding, CFF subsetting and

SaveFontToFile; ‏GetFontVariationAxes מחזירה 0 עבורוטעינת גופן CFF2 ישירות בוחרת את המופע הסטטי המוגדר כברירת מחדל שלו תוך שמירת התוכנית המשתנה המקורית לקריאות מאוחרות ל-API זה

Use

CreateTrueTypeFontVariation for variable fonts that use glyf outlines

ראה גם

GetFontVariationAxes, CreateTrueTypeFontVariation, AddOpenTypeFontFromFile, SaveFontToFile