FontFile

ภาพรวม

FontFile เป็นคลาสใน Aspose.3D FOSS สำหรับ Python. สืบทอดจาก: A3DObject.

ไฟล์ฟอนต์มีการกำหนดนิยามสำหรับ glyphs, ใช้เพื่อสร้างโปรไฟล์ข้อความ.

คลาสนี้ประกาศ 7 เมธอดสำหรับอ็อบเจกต์ FontFile ในโปรแกรม Python. เมธอดที่มีให้รวมถึง: __init__, find_property, from_file, get_property, parse, remove_property, set_property. สมาชิกสาธารณะทั้งหมดสามารถเข้าถึงได้โดยแอปพลิเคชัน Python ใด ๆ หลังจากติดตั้งแพคเกจ Aspose.3D FOSS สำหรับ Python. คุณสมบัติ: name, properties.

คุณสมบัติ

ชื่อประเภทการเข้าถึงคำอธิบาย
namestrอ่าน/เขียนรับหรือกำหนดชื่อ.
propertiesPropertyCollectionอ่านรับคุณสมบัติ.

วิธีการ

ลายเซ็นคำอธิบาย
__init__(name: str)Calls init(name) บนอินสแตนซ์ FontFile นี้.
from_file(file_name: str) → 'FontFile'โหลด FontFile จากชื่อไฟล์.
parse(data: bytes) → 'FontFile'แยกวิเคราะห์ FontFile จากข้อมูลไบต์.
find_property(property_name: str)เรียก find_property(property_name) บนอินสแตนซ์ FontFile นี้.
get_property(property: str)เรียก get_property(property) บนอินสแตนซ์ FontFile นี้.
set_property(property: str, value)ตั้งค่าคุณสมบัติ.
remove_property(property)เรียก remove_property(property) บนอินสแตนซ์ FontFile นี้.

ดูเพิ่มเติม

 ภาษาไทย