LetteringSpec#
Import |
|
Defined in |
|
Install |
|
Since |
0.11 |
Stability |
Public: follows semantic versioning. Below 1.0, a minor release may change it, and the CHANGELOG says how. |
- class scenet.ir.LetteringSpec[source]#
Bases:
StrictHow a panel is lettered.
A size or a font set beside
panels:is a default every panel inherits, which is how a page letters at one size of the author’s choosing. Set on one panel, it letters that panel alone – the author’s call to make, and not one the compiler second-guesses.The type is measured at exactly this size, so it decides how big every balloon is. A size too large for the panel leaves a balloon nowhere to go, which
scenet check --deepreports asballoon-placement.Example
>>> from scenet import LetteringSpec, parse_panel >>> lettering = parse_panel("lettering: {size: 30}").lettering >>> isinstance(lettering, LetteringSpec), lettering.size (True, 30.0)
See also
FontSpec, the files it letters in.