Aspose.Font FOSS for Python

API Reference עבור Aspose.Font FOSS for Python v1.0.0. 139 public types organized by module.

אש גרעינית

שיעורתיאור
ActiveTupleSummaryActiveTupleSummary.to_dict() חוזר מילון המכיל את האינדקס של הטופל, ערך הסולם, קואורדינטות הגבוהות, הקואורינטים להתחיל וקוארינטים סופיים.
AnimationAssetAnimationAsset.write_to(path) כותב את נתוני האנימציה שנוצרו למקום של מערכת הקובץ, יוצר תיקיה נעדרים ומחזיר את מסלול הקבצים הכתובים.
AnimationFramePackageAnimationFramePackage.write_to(path) כותב את תמונת הסריפ, כל תמונה מסגרת, ומופע JSON המתאר את תווית FPS ואת התוויות המסגרת לתיקייה שנקבעו.
AnimationPresetAnimationPreset.name stores the identifier of the animation preset.
AnimationPreviewBuilderAnimationPreviewBuilder.available_presets returns a tuple of preset names for animation generation.
AnimationReviewPackageAnimationReviewPackage.write_to saves the review package to the given filesystem path and returns the Path.
AnimationShowcasePackageAnimationShowcasePackage.write_to writes the package to the given path and returns the resulting Path.
AnimationStepAnimationStep.coordinates stores a mapping of axis names to float values defining the font instance.
BinaryReaderמעבירה מקור באט ב- BytesIO ניתן לחפש עבור פריסה בינארית של טופס גדול.
BinaryWriterאוסף באטים עבור סיריליזציה של טופס בינארי.
CffSerializerCffSerializer יכול לסריאליזציה של CffFont מלאה לתוך סדרת ביטים מתאימה לכתוב כקובץ טקסט CFF או OpenType.
ClosePathמדרגות מתקדמות PathCommand.
CompatibilityCheckerCompatibilityChecker.compare_fonts(לפני, אחרי, לפני_label, לאחר_Label , נקודות קוד, טקסט) מייצרים CompatibilityReport שניתן לייצא ל-JSON באמצעות report.to_json (indent=2, sort_keys=True).
CompatibilityReportCompatibilityReport.to_json(indent, sort_keys) חוזר שורת JSON של הדו"ח, ו write_json(target, indent , sort _key) כותב כי JSon ישירות לקובץ.
CompletedTaskRecordCompletedTaskRecord.task_id uniquely identifies the completed task.
CompositeComponentMovementCompositeComponentMovement.to_dict returns a dict of the object’s numeric and boolean fields.
CompositeGlyphComponentCompositeGlyphComponent.to_dict() חוזר דיקט של התכונות המספריות של המרכיב.
CoverageGroupאבחון כיסוי עבור מקור בקשה אחת כגון מראש, טקסט או מגוון.
CurveAdapterCurveAdapter.quad_to_cubic converts a quadratic Bézier (p0, q, p3) to an equivalent cubic Bézier, returning four points.
CurveToCurveTo.x1 is the x‑coordinate of the first Bézier control point.
DeltaInspectorDeltaInspector מאפשר ניתוח מפורט של משתנה-פונטה, ויוצר אובייקטים GlyphDeltaReport ו TextDeltaReport שמדגישים שינויים בקואורדינטות בין דוגמאות.
DeltaPointDeltaPoint.to_dict returns a dictionary of the point’s numeric components.
DeltaTupleReportDeltaTupleReport.tuple_index is the zero‑based index of the delta tuple.
EotSerializerEotSerializer.serialize(font) מחזיר את הציגה הבינארית המלאה של טופס EOT מוכן להוצאת קובץ.
FamilyReviewExportPackageFamilyReviewExportPackage.write_to(הדפוס) יוצר קבוצה של קבצים HTML, CSS ומופיעים עבור משפחת טופס, להחזיר את רשימת מסלולי הקובץ שנוצרו.
Fontבסיס אבסטרטי לכל יישומי פורמט טקסט.
FontCleanerטפטים וטכני טבלה ניקוי.
FontConversionExceptionגדל כאשר הפורמט של טופס הטקסט נכשל או אינו נתמך.
FontConverterFontConverter.convert(font, target) מייצר אובייקט טפט חדש בפורמט היעד, מגדיל FontConversionException אם ההמרה אינה מתבצעת.
FontEncodingמפות Unicode נקודות קוד ל-Glyph IDs.
FontExceptionשיעור בסיס לכל יוצאי החשבון של ספריית האותיות.
FontLoaderFontLoader.open(מקור, font_type, collection_index) מחזיר אובייקט טפט המייצג את סוג הטקסט המבקש מבלי להעלות לחלוטין את הקובץ כולו לתוך הזיכרון.
FontMetricsFontMetrics מציג ערכים טיפוסיים מרכזיים כגון units_per_em, ascender, descender ו line_gap עבור חישובי הפריסה.
FontNotSupportedExceptionהגדלת עבור תכונות טקסט תקינות אך לא נתמכות (לדוגמה,.
FontParseExceptionגדל כאשר נתוני טופס בינארי אינם ניתנים לדירוג.
FontPreviewBuilderFontPreviewBuilder.build(קובץ, טקסט, גודל, צבע, רקע, פדנג, antialias, file_stem, instance_coordinates, instan_name, output_format) מייצר {PNG או SVG) של הטקסט המסופק עם האותיות שניתן.
FontSourceInfoתיאור מקור ה-Byte המורכב.
FontSubsetterFontSubsetter.available_presets() חוזר על מספר רב של שמות מראש שניתן להשתמש בהם עבור תת-מונחה באינטרנט.
GlyphGlyph.glyph_id identifies the glyph using its numeric GlyphId.
GlyphAccessorמחזיר את הגליפים על ידי ID או Unicode codepoint.
GlyphCompatibilityIssueGlyphCompatibilityIssue.to_dict returns a dictionary representation of the issue.
GlyphDeltaComparisonReportGlyphDeltaComparisonReport.moved_point_count is the count of points that moved between before and after.
GlyphDeltaReportGlyphDeltaReport.to_dict returns a dictionary representation of the report’s data.
GlyphIdGlyphId.value holds the integer identifier of a glyph.
GlyphInterpolationIssueGlyphInterpolationIssue.codepoint is the integer Unicode codepoint of the affected glyph.
GlyphLayoutגליף יחיד ממוקם בקואורדינטות של הפריסה בעולם-חלל.
GlyphNotFoundExceptionהועלה כאשר זיהוי גליף או נקודת קוד מבוקשת אין מפות בכתב העת.
GlyphOutlineStatsGlyphOutlineStats.to_dict returns a dictionary representation of the outline statistics.
GlyphPathסדר של אובייקטים PathCommand המייצגים את התוצאה של גליף אחד.
KernPairKernPair.left is the GlyphId of the left glyph in the kerning pair.
LanguageProfileLanguageProfile.to_dict returns a dictionary representation of the language profile.
LineToLineTo.x represents the horizontal coordinate of the line endpoint.
LoadedFontתוצאה מחוברת ידידותית שמטפלת בפורמט ועוד נתונים מטא-מקור.
LocalizationCoverageLocalizationCoverage.to_dict returns a dictionary representation of the coverage data.
LocalizationResolutionLocalizationResolution.to_dict returns a dictionary representation of the resolution state.
MoveToMoveTo.x stores the horizontal coordinate for the move operation.
PathCommandמפתח אבסטרטי לכל סוגים של פקודות מסלול.
PreviewImagePreviewImage.write_to(path) מאחסן את הפרוייקט ה-PNG או SVG שנוצר למקום המוגדר במערכת הקבצים ומחזיר את אובייקטיבי Path.
QuadraticToQuadraticTo.x1 represents the x‑coordinate of the quadratic Bézier control point.
Rasterizerסקנרינג rasterizer עבור GlyphPath תוצאות עם ייצוא PNG טהור Python.
RequestedLanguageHintRequestedLanguageHint.to_dict returns a dictionary representation of the hint object.
ResolvedInstanceResolvedInstance.label is the human‑readable name of the resolved instance.
SmartInstancerSmartInstancer.instantiate(קואורדינטים, instance_name, naming_strategy, family_suffix, legacy_family_nam, typographic_Family-nam , legation_style_nim, tipographic _style _name , stat_policy) חוזר אובייקט TtfFont המייצג דוגמה סטטית של האות משתנה.
SubsetCoverageאוסף אבחון כיסוי Unicode עבור בקשה להגשת תשלום.
SubsetResultתוצרת הונחה מחוברת עם הדו"ח כיסוי המשמש לייצור אותו.
TaskCompletionReceiptTaskCompletionReceipt.task_id identifies the task uniquely.
TaskTokenEstimateTaskTokenEstimate.task_id is the unique identifier of the task.
TextDeltaComparisonReportTextDeltaComparisonReport.to_dict() חוזר מילון המכיל את כל שדות הדו"ח.
TextDeltaReportTextDeltaReport אוסף מידע דלטה ברמה של glyph, המציג glyf_count, active_glyph_conto, וקולקציה של gliph-reports לבדיקה QA.
TextLayoutתוצאה של שיחה TextRenderer.layout() .
TextRendererהוא מוציא את הטקסט באמצעות מטריקה של גליף של טופס ועיניים גרעין אופציונליות.
TtfSerializerTtfSerializer.serialize serializes the given font object to a byte array, optionally using the provided sfnt version.
TupleScalarDeltaTupleScalarDelta.to_dict() מחזיר דיקט עם ערכים tuple_index, לפני_scalar ואחרי_escalar.
Type1SerializerType1Serializer.serialize_pfb converts a font object to PFB binary data.
UnsupportedFontFormatExceptionהגדלה על ידי FontLoader כאשר ה-File Magic Byts אינם מוכרים.
VariableAxisVariableAxis.normalize(ערך) מחזיר את המיקום הנורמלי (0-1) של הקואורדינט המזרק לפי טווח המוגדר של המזרח.
VariableAxisPresetVariableAxisPreset.to_presentation(axis) מחזיר את המילון של נתוני הצגת עבור הקדמה, מתאים ל- UI להגשת בקשות קדמות.
VariableInstanceVariableInstance.css_variation_settings(axes) מייצר כפול של CSS font-variation-settings רצועות עבור אוסף מסוים של אסיה.
WebFontAssetWebFontAsset.filename stores the original font file name as a string.
WebFontBuilderWebFontBuilder יכול ליצור משפחות שלם של מקורות אינטרנט עם CSS, דפי HTML מראש ופרטים מוכנים להפעלה.
WebFontBundleWebFontBundle.write_to writes the bundle to a directory and returns the list of written file paths.
WebFontFamilyPackageWebFontFamilyPackage.write_to(הדריך) יוצר חבילה משפחתית מלאה המכילה CSS, HTML, מופין וכל נכסי האותיות המובנות עבור מגוון רחב של סגנונות.

רשימה

רשימהתיאור
FontTypeFontType.TTF represents the TrueType font format.

CFF ניהול מפתח

שיעורתיאור
CffCharsetCffCharset.standard(num_glyphs) יוצר קצב CFF סטנדרטי עבור מספר נתון של גליפים, ו name_for(gid) חוזר את שם הגליף עבור זיהוי גליק.
CffDictCffDict.from_bytes creates a CffDict instance from the given binary data.
CffEncodingCffEncoding.unicode_to_gid(קודפוננט) מחזיר את GlyphId עבור נקודת קוד Unicod בהתאם לקוד CFF הנוכחי.
CffFontCffFont.get_kern_pairs() חוזר רשימה של אובייקטים KernPair המייצגים את התאמות הקורן שנקבעו בפיטון.
CffIndexCffIndex.from_reader(r) יוצר יישום CffIndex על ידי פריסה של נתונים מהקורא בינארי r.
PrivateDictPrivateDict.from_dict(d) יוצר דוגמה של PrivateDict מבעון המכיל כניסות דיקט פרטיות כגון default_width_x ו nominal_ width-x.
PrivateDictOpPrivateDictOp.BLUE_VALUES represents the BlueValues entry defining alignment zones for horizontal stems.
TopDictTopDict.from_dict(d, string_index) יוצר דוגמה TopDict מתוך דיסקרטיה וטבלה של אינדיקטורים של שורת, המאפשרת מחדשנות תכנית של נתונים מטא-מעמד העליון של טופס.
TopDictOpTopDictOp.VERSION represents the font’s version number.
Type2Interpreterמתורגמים סוג 2 מפרשים לתוך פקודות GlyphPath.

תגית: EOT Font Handling

שיעורתיאור
EotFontהובלה OpenType (EOT) על חותם פנימי TrueType/OpenType.
EotHeaderEotHeader.eot_size is the total size of the EOT file in bytes.

TrueType תגית: טקסט

שיעורתיאור
AvarAxisMapAvarAxisMap.mapping stores a list of (float, float) tuples that define input‑output value mappings for a variable font axis.
AvarTableAvarTable.from_reader(r, אורך) בונה AvarTable מתוך קורא בינארי, ומפה_נורמליזציה (axis_index, ערך) מחזירה את המפות עבור קואורדינט המערב נורמאלי.
AxisRecordAxisRecord.tag stores the four‑character axis tag identifier (e.g., ‘wght’).
CmapSubtableCmapSubtable.get_gid returns the glyph ID for a Unicode codepoint or None if unmapped.
CmapTableCmapTable.from_reader(r, table_length) מפריס טבלת cmap מתוך זרם של אותיות, ו best_subtable() בוחר את הטופ המתאים ביותר עבור Unicode searchups.
DeltaSetIndexDeltaSetIndex.outer represents the outer index component of a delta set location.
DeltaSetIndexMapDeltaSetIndexMap.from_reader(r) בונה DeltaSetIndexMap מתוך קורא בינארי, ו get(gid) מקבל את המתאים DeltaSetIndex .
FvarTableFvarTable.from_reader creates a new FvarTable by reading length bytes from a BinaryReader.
GlyfTableGlyfTable.from_reader reads a GlyfTable from a BinaryReader using the specified length and returns a GlyfTable instance.
GvarTableGvarTable.from_reader reads a GvarTable from a BinaryReader using the given length and axis tags.
HMetricמדרגה עם 2 נכסים.
HeadTableHeadTable.from_reader reads a BinaryReader and returns a populated HeadTable instance.
HheaTableHheaTable.from_reader reads a BinaryReader and constructs a HheaTable object.
HmtxTableHmtxTable.from_reader reads hmtx data from a BinaryReader and creates an HmtxTable instance.
HvarTableHvarTable.advance_width_delta(gid, normalized_coordinates) מחזיר את התאמת רוחב עבור זיהוי גליף ב-the specified normalised axis coordinates.
ItemVariationDataItemVariationData.from_reader creates an ItemVariationData instance by reading binary data from a BinaryReader.
ItemVariationStoreItemVariationStore.evaluate(delta_set_index, coordinates) מחשב את התאמת הדלטה עבור אסיה משתנה-פונט בהתבסס על הקואורדינטות הסטנדרטיות המסופקות.
KernTableKernTable.build_lookup() יוצר מפת מילון (left_gid, right_kid) טופלים כדי להדביק ערכים עבור חיפוש מהיר.
LocaTableLocaTable.glyph_offset(gid) מחזיר את ה- byte offset של נתוני הגליף עבור ID הגליק שניתן בתוך טבלת הגילף של האותיות.
MaxpTableMaxpTable.to_bytes returns the binary encoding of the MaxpTable.
NameRecordNameRecord.platform_id identifies the platform for which the name record applies.
NameTableNameTable.language_key returns a language tag string for the given platform_id and language_id.
NamedInstanceNamedInstance.name_id is the integer identifier for the instance’s name record.
NamingPolicyPreviewתוצאות יבש עבור רשומות שמות אינסטציה סטטית שנוצרו.
Os2TableOs2Table.from_reader(r, table_length) מפריס טבלה OS/2 מתוך קורא בינארי ומחזיר יישום Os2Table .
PlatformNamingDiagnosticsPlatformNamingDiagnostics מספק דגלים ופיקוח אורך (לדוגמה, postscript_name_safe, postcript-name-length) כדי לסייע לוודא שמות שנוצרו עומדים במגבלות הפלטפורמה.
PostTablePostTable.version holds the version number of the post table.
StatNamingDiagnosticsStatNamingDiagnostics מדווח אם טופס המקור מכיל טבלאות STAT וממליץ על הגדרות סטט_פוליטי מתאימות לייצוא.
TtcFaceRecordTtcFaceRecord.offset represents the byte offset of this face record within the TTC file.
TtfFontTtfFont.save(path) כותב את דוגמה הטקסט הנוכחית למסלול מערכת הקבצים המסופקים בפורמט המקומי שלה.
TtfGlyphParserTtfGlyphParser.parse parses the glyph identified by the given GlyphId and returns a Glyph object.
TtfInstancerTtfInstancer.preview_naming_policy returns a naming preview for a variable font instance based on given coordinates and naming options.
TtfTableSetTtfTableSet.get_raw returns the raw bytes of the table identified by the given tag, or None if absent.
TupleVariationTupleVariation.peak_coords holds the axis coordinate values that define the variation peak.
VariationRegionVariationRegion.scalar returns a scalar value for the region based on given coordinate mapping and axis tag order.
VariationRegionAxisVariationRegionAxis.scalar(הקונדינט) מחזיר את ערך המסלול של הקונדנט מסוים לאורך המזרן, באמצעות תכונות ההתחלה, השיא והסוף של המגרש.

סוג 1 ניהול חותם

שיעורתיאור
AfmDataAfmData.font_name is the PostScript name of the font extracted from the AFM file.
AfmGlyphMetricAfmGlyphMetric תכונות להציג את שם הגליף, נקודת קוד, רוחב קדימה, ואת תיבת הגבול עבור גליפה מוגדרת בקובץ AFM.
PfbSegmentPfbSegment.seg_type represents the integer identifier of the segment type in a PFB file.
Type1FontType1Font.load_afm loads an AFM file from the given path into the Type1Font instance.
Type1FontDataType1FontData.full_name is the full human‑readable name of the font.
Type1InterpreterType1Interpreter.interpret interprets a Type 1 charstring and returns a GlyphPath with the bytes consumed.

WOFF / Woff2 ניהול

שיעורתיאור
Woff2FontWoff2Font.to_bytes(font_type) מסריאליז את האות WOFF2 לתוך אובייקט באט עבור האתגר_טיפ שנקבע.
WoffFontWoffFont.font_type returns the FontType enumeration value of this WOFF font.

ראה גם

 עברית