FontFile
isi
[
bersembunyi
]FontFile class
File font berisi definisi untuk glyph, ini digunakan untuk membuat profil teks. @hideconstructor
Metode
getName
| Nama | Deskripsi |
|---|---|
| getName() | Mendapatkan atau mengatur nama. Nama. |
Result:
setName
| Nama | Deskripsi |
|---|---|
| setName(value) | Mendapatkan atau mengatur nama. Nama. |
Result:
getProperties
| Nama | Deskripsi |
|---|---|
| getProperties() | Mendapatkan koleksi semua properti. |
Result:
fromFile
| Nama | Deskripsi |
|---|---|
| fromFile(fileName) | Muat FontFile dari nama file |
Parameters:
| Nama | Tipe | Deskripsi |
|---|---|---|
| fileName | String | Jalur ke file font |
Result: FontFile
parse
| Nama | Deskripsi |
|---|---|
| parse(bytes) | Parse FontFile dari byte |
Parameters:
| Nama | Tipe | Deskripsi |
|---|---|---|
| byte | byte[] | Konten mentah file font OTF |
Result: FontFile
removeProperty
| Nama | Deskripsi |
|---|---|
| removeProperty(property) | Menghapus properti dinamis. |
Parameters:
| Nama | Tipe | Deskripsi |
|---|---|---|
| property | Property | Properti mana yang akan dihapus |
Result: boolean
removeProperty
| Nama | Deskripsi |
|---|---|
| removeProperty(property) | Hapus properti yang ditentukan yang diidentifikasi dengan nama |
Parameters:
| Nama | Tipe | Deskripsi |
|---|---|---|
| propert | String | null |
Result: boolean
getProperty
| Nama | Deskripsi |
|---|---|
| getProperty(property) | Dapatkan nilai properti yang ditentukan |
Parameters:
| Nama | Tipe | Deskripsi |
|---|---|---|
| property | String | Nama properti |
Result: Object
setProperty
| Nama | Deskripsi |
|---|---|
| setProperty(property, value) | Menetapkan nilai properti yang ditentukan |
Parameters:
| Nama | Tipe | Deskripsi |
|---|---|---|
| property | String | Nama properti |
| value | Object | Nilai properti |
Result: Object
findProperty
| Nama | Deskripsi |
|---|---|
| findProperty(propertyName) | Menemukan properti. Bisa berupa properti dinamis (Dibuat oleh CreateDynamicProperty/SetProperty) atau properti native (Diidentifikasi berdasarkan namanya) |
Parameters:
| Nama | Tipe | Deskripsi |
|---|---|---|
| propertyName | String | Nama properti. |
Result: Property