CreateTrueTypeFontVariation

Text, fonts, variable fonts

תיאור

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

תחביר

Delphi

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

פרמטרים

FontIDA TrueType variable-font handle returned by a font creation or loading 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

הערות

The instantiator applies normalized gvaravarHVARMVAR

SaveFontToFile מפות מקטעים, GetFontVariationAxes מטריקות אופקיות ו-0 מטריקות גלובליות, כולל אינטרפולציית IUP וטרנספורמציות גליפים מורכביםקווי-מתאר מורכבים ממוטחים ונפלטים כגליפים פשוטים, מטריקות אופקיות וגבולות גופן נבנים מחדש, טבלאות hinting ומטריקות-מכשיר מיושנות מוסרות, וה-sfnt של הפלט מקבל checksum חדש

The returned font is a regular static TrueType font that works with drawing, embedding, subsetting, glyph inspection and glyf; CreateOpenTypeFontVariation returns CFF2 for itThis API requires

ראה גם

GetFontVariationAxes, CreateOpenTypeFontVariation, SaveFontToFile, GetFontGlyphOutline