Aspose.Note FOSS لـ Python

مرجع API لـ: 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 manifesto تصف 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، after_ label, codepoints، text) ينتج CompatibilityReport التي يمكن تصديرها إلى JSON عبر report.to_json ((indent=2 ، sort_keys=True).
CompatibilityReportCompatibilityReport.to_json(indent, sort_keys) يعيد سلسلة JSON من التقرير ، و write_ json ((target, indent , sort _ keys)) يكتب هذا JCON مباشرة إلى ملف.
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 تمكن من تحليل متغير-font delta التفصيلي، وتوليد 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.serialise(font) يعيد التمثيل الثنائي الكامل لخط EOT جاهز للخروج من الملف.
FamilyReviewExportPackageFamilyReviewExportPackage.write_to(directory) يخلق مجموعة من HTML و CSS ، والملفات المعلنة لعائلة الخطوط، وإعادة قائمة مسارات الملفات التي تم إنشاؤها.
Fontقاعدة تجريدية لجميع تنفيذات شكل الخطوط.
FontCleanerبيانات النمط و نظافة الطاولة التقنية.
FontConversionExceptionيتم رفعها عندما تفشل تحويل شكل الخط أو لا يدعم.
FontConverterFontConverter.convert(font, target) ينتج كائنًا جديدًًة من الخطوط في تنسيق الهدف، ويرفع FontConversionException إذا لم يتم إجراء التحويل.
FontEncodingخرائط نقاط رمز يونيكود إلى هويات النقاط.
FontExceptionالطبقة الأساسية لجميع استثناءات مكتبة الخطوط.
FontLoaderFontLoader.open ((source, font_type, collection_index) يعيد كائن Font يمثل نوع الخط المطلوب دون تحميل كامل الملف إلى الذاكرة.
FontMetricsFontMetrics يعرض القيم النوعية الرئيسية مثل units_per_em، ascender، descender ، و line_gap لحسابات التخطيط.
FontNotSupportedExceptionتم رفعها لميزات الخط الصحيحة ولكن غير المدعومة (مثل:.
FontParseExceptionيتم رفعها عندما لا يمكن تحليل بيانات الخط الثنائي.
FontPreviewBuilderFontPreviewBuilder.build(font, text, size, color, background, padding, antialias, file_stem, instance_coordinates, example_name, output_format) يولد PreviewImage (PNG أو SVG) من النص المقدم مع الخط المعطى.
FontSourceInfoوصف أصل البايتات المحمولة.
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مسحف خط التنقيب لخطط GlyphPath مع تصدير PNG النقي من بايثون.
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_names، typographic_familiename، heritage_style_nama، type_type_ name، stat_policy) يعيد كائنًا TtfFont يمثل مثالاً ثابتًة للخطوط المتغيرة.
SubsetCoverageتشخيصات تغطية يونيكود المجمعة لطلب التعيين الفرعي.
SubsetResultإنتاج الاستبدال المجمّع مع تقرير التغطية الذي استخدم لإنتاجه.
TaskCompletionReceiptTaskCompletionReceipt.task_id identifies the task uniquely.
TaskTokenEstimateTaskTokenEstimate.task_id is the unique identifier of the task.
TextDeltaComparisonReportTextDeltaComparisonReport.to_dict() يعيد قاموس يحتوي على جميع حقول التقارير.
TextDeltaReportTextDeltaReport تجمع معلومات دلتا على مستوى النمط، مع عرض عدد النمو والعدد النشط للنوم ومجموعة من تقارير النمل للفحص في مراقبة الجودة.
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 وبعد_Scaler القيم.
Type1SerializerType1Serializer.serialize_pfb converts a font object to PFB binary data.
UnsupportedFontFormatExceptionيتم رفعها بواسطة FontLoader عندما لا يتم التعرف على بايت السحر للملف.
VariableAxisVariableAxis.normalize(value) يعيد الموقع الطبيعي (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(directory) يخلق حزمة عائلية كاملة تحتوي على 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(codepoint) يعيد GlyphId لـ Unicode codepoint وفقًا لتشفير 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 للخطوط

الفئةوصف
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, length) يبنّي AvarTable من قارئ ثنائي، و map_normalized ((axis_index ، value) يعيد العوامل المخطط لها لتنسيق المحور المعمول به.
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 (()) يختار أكثر CmapSubtable مناسبة للبحث في Unicode.
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) يعيد تعديل العرض لـ ID النمط في إحداثيات المحور المحددة.
ItemVariationDataItemVariationData.from_reader creates an ItemVariationData instance by reading binary data from a BinaryReader.
ItemVariationStoreItemVariationStore.evaluate(delta_set_index، الإحداثيات) يحسب تعديل دلتا لخطوط متغير على أساس الإتحاديات المعتادة التي تم تقديمها.
KernTableKernTable.build_lookup() يخلق تعديل قاموس (left_gid, right_gis) لقياسات الكرنينغ للبحث السريع.
LocaTableLocaTable.glyph_offset(gid) يعيد تعويض بايتات بيانات النصوص الخاصة بمعرفة النطاق المحددة داخل جدول النتائج للخطوط.
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 ويوصي بإعدادات سياسة 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(coordinate) يعيد قيمة التدفق الدرجية للوحدة المحددة على طول المحور، باستخدام خصائص البداية والذروة ونهاية المحاور.

نوع 1 التعامل مع الخطوط

الفئةوصف
AfmDataAfmData.font_name is the PostScript name of the font extracted from the AFM file.
AfmGlyphMetricخصائص AfmGlyphMetric تعرض اسم النمط، نقطة الرمز، عرض المقدمة، وصندوق الحدود لنمتر محدد في ملف 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.

انظر أيضاً

 العربية