Poppler.FontDescription¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
font_name |
r/w |
name of font family |
|
size_pt |
r/w |
size of font in pt |
|
stretch |
r/w |
a |
|
style |
r/w |
a |
|
weight |
r/w |
a |
Methods¶
class |
|
|
|
|
Details¶
- class Poppler.FontDescription¶
A
Poppler.FontDescription
structure represents the description of a font. When used together with Pango, all the fields are value-compatible with pango equivalent, although Pango font descriptions may contain more information.This type supports g_autoptr
New in version 24.12.0.
- classmethod new(font_name)¶
- Parameters:
font_name (
str
) – the family name of the font- Returns:
a new
Poppler.FontDescription
, usePoppler.FontDescription.free
() to free it- Return type:
Creates a new
Poppler.FontDescriptions
- copy()¶
- Returns:
a new allocated copy of self
- Return type:
Creates a copy of self
- free()¶
Frees the given
Poppler.FontDescription