fontgate.fgBrush
fgBrush
Brush representation
Constructors: fgBrush() - default fgBrush(fgBrush) - copy fgBrush(fgColor) - solid brush with selected color and default size (1, 0) fgBrush(fgColor, fgPoint) - solid brush with selected color and size
Native bases: object
Captured native MRO: fgBrush, object
Native new allocation evidence (not an init overload): (args, *kwargs) Create and return a new object. See help(type) for accurate signature.
Supplemental documentation:
A stroke brush. The captured declaration exposes the attributes kind, solid, thickness, contrast, rotation, proportion, join_type, miter_limit, tolerance, remove_overlap, cap0 and cap1, and the methods asDict, asTuple, black, isBlack, isTransparent and transparent. FontLab 9.1 removed the old size attribute; use thickness and the other stroke members.
Source: generated/fontgate.py: fgBrush captured declaration
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 |
|---|---|---|---|
__init__ |
function | (self, /, *args: Any, **kwargs: Any) -> None |
Initialize self. (shared captured text) |
asDict |
function | (self, *args: Any, **kwargs: Any) -> Any |
Represent object as dictionary (shared captured text) |
asTuple |
function | (self, *args: Any, **kwargs: Any) -> Any |
Represent object as tuple (shared captured text) |
black |
function | () -> fgBrush |
FgBrush black() - get black solid brush |
cap0 |
attribute | Any |
FgCapParams start cap (copy; assign back after editing) |
cap1 |
attribute | Any |
FgCapParams end cap (copy; assign back after editing) |
contrast |
attribute | Any |
(float) stroke contrast, 1.0 = none |
isBlack |
function | (self) -> bool |
Bool isBlack() - return true if brush is black |
isTransparent |
function | (self) -> bool |
Bool isTransparent() - return true if brush is transparent |
join_type |
attribute | Any |
(int) 0 = bevel, 1 = round, 2 = miter |
kind |
attribute | Any |
('Empty'/'Solid'/'Gradient') brush type |
miter_limit |
attribute | Any |
(float) miter limit |
proportion |
attribute | Any |
(float) nib proportion, 0..1 (0.5 = round/square nib) |
remove_overlap |
attribute | Any |
(bool) remove overlap of the expanded stroke |
rotation |
attribute | Any |
(float) nib rotation in degrees |
solid |
attribute | Any |
(fgColor) brush color |
thickness |
attribute | Any |
(float) stroke thickness |
tolerance |
attribute | Any |
(float) stroke approximation tolerance |
transparent |
function | () -> fgBrush |
FgBrush transparent() - get transparent solid brush |