Poppler.FontDescription

Fields

Name

Type

Access

Description

font_name

str

r/w

name of font family

size_pt

float

r/w

size of font in pt

stretch

Poppler.Stretch

r/w

a Poppler.Stretch representing stretch of the font

style

Poppler.Style

r/w

a Poppler.Style representing style of the font

weight

Poppler.Weight

r/w

a Poppler.Weight representing weight of the font

Methods

class

new (font_name)

copy ()

free ()

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, use Poppler.FontDescription.free() to free it

Return type:

Poppler.FontDescription

Creates a new Poppler.FontDescriptions

copy()
Returns:

a new allocated copy of self

Return type:

Poppler.FontDescription

Creates a copy of self

free()

Frees the given Poppler.FontDescription