TtfTableSet
TtfTableSet
General
TtfTableSet és una classe en FOSS per Python.
TtfTableSet.get_raw returns the raw bytes of the table identified by the given tag, or None if absent.
Aquesta classe proporciona 2 mètodes per treballar amb objectes TtfTableSet en programes de Python. Els mètodes disponibles inclouen: get_raw, set_raw. Tots els membres públics són accessibles a qualsevol aplicació de Python després d’instal·lar el paquet FOSS per Python. Propietats: cmap, fvar, glyf, head, hhea, hmtx, i 7 més.
Propietats
| Nom | Tipus de productes | Accés | Descripció |
|---|---|---|---|
head | `HeadTable | None` | Llegir/Escriure |
hhea | `HheaTable | None` | Llegir/Escriure |
maxp | `MaxpTable | None` | Llegir/Escriure |
os2 | `Os2Table | None` | Llegir/Escriure |
name | `NameTable | None` | Llegir/Escriure |
post | `PostTable | None` | Llegir/Escriure |
cmap | `CmapTable | None` | Llegir/Escriure |
loca | `LocaTable | None` | Llegir/Escriure |
hmtx | `HmtxTable | None` | Llegir/Escriure |
kern | `KernTable | None` | Llegir/Escriure |
glyf | `GlyfTable | None` | Llegir/Escriure |
fvar | `FvarTable | None` | Llegir/Escriure |
hvar | `HvarTable | None` | Llegir/Escriure |
Mètodes
| Signatura | Descripció |
|---|---|
get_raw(tag: str) → `bytes | None` |
set_raw(tag: str, data: bytes) | S’estableix el valor brut. |