fontlabapp.fontui.tglyph_model.View
View
dataclass
Font units to screen pixels: sx = dx + x * scale, sy = dy - y * scale.
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
adjusted |
attribute | bool |
|
dx |
attribute | float |
|
dy |
attribute | float |
|
fit |
function | (self, box: tuple[float, float, float, float], width: float, height: float, margin: float=FIT_MARGIN) -> None |
Centre <code>box</code><code> (font units) in a </code><code>width</code><code> x </code><code>height</code> pixel area. |
pan |
function | (self, ddx: float, ddy: float) -> None |
|
scale |
attribute | float |
|
to_font |
function | (self, sx: float, sy: float) -> tuple[float, float] |
|
to_screen |
function | (self, x: float, y: float) -> tuple[float, float] |
|
zoom |
function | (self, factor: float, sx: float, sy: float) -> None |
Scale by <code>factor</code><code> (clamped) keeping the font point under </code><code>(sx, sy)</code> still. |