A Pango::CairoFontMap represents the set of fonts available for a particular rendering system.
More...
#include <pangomm/cairofontmap.h>
|
static void | add_interface (GType gtype_implementer) |
|
static GType | get_type () |
| Get the GType for this class, for use with the underlying GObject type system.
|
|
A Pango::CairoFontMap represents the set of fonts available for a particular rendering system.
◆ CairoFontMap() [1/2]
Pango::CairoFontMap::CairoFontMap |
( |
| ) |
|
|
protected |
You should derive from this class to use it.
◆ CairoFontMap() [2/2]
◆ ~CairoFontMap()
Pango::CairoFontMap::~CairoFontMap |
( |
| ) |
|
|
overridenoexcept |
◆ add_interface()
static void Pango::CairoFontMap::add_interface |
( |
GType | gtype_implementer | ) |
|
|
static |
◆ create_context()
◆ get_font_type()
Gets the type of Cairo font backend that fontmap uses.
- Since pangomm 1.18
- Returns
- The #cairo_font_type_t cairo font backend type.
◆ get_resolution()
double Pango::CairoFontMap::get_resolution |
( |
| ) |
const |
◆ get_type()
static GType Pango::CairoFontMap::get_type |
( |
| ) |
|
|
static |
Get the GType for this class, for use with the underlying GObject type system.
◆ gobj() [1/2]
PangoCairoFontMap * Pango::CairoFontMap::gobj |
( |
| ) |
|
|
inline |
Provides access to the underlying C GObject.
◆ gobj() [2/2]
const PangoCairoFontMap * Pango::CairoFontMap::gobj |
( |
| ) |
const |
|
inline |
Provides access to the underlying C GObject.
◆ operator=()
◆ set_default()
void Pango::CairoFontMap::set_default |
( |
| ) |
|
Sets a default Pango::CairoFontMap to use with Cairo.
This can be used to change the Cairo font backend that the default fontmap uses for example. The old default font map is unreffed and the new font map referenced.
Note that since Pango 1.32.6, the default fontmap is per-thread. This function only changes the default fontmap for the current thread. Default fontmaps of existing threads are not changed. Default fontmaps of any new threads will still be created using new().
A value of nullptr
for fontmap will cause the current default font map to be released and a new default font map to be created on demand, using new().
- Since pangomm 1.22
◆ set_resolution()
void Pango::CairoFontMap::set_resolution |
( |
double | dpi | ) |
|
Sets the resolution for the fontmap.
This is a scale factor between points specified in a Pango::FontDescription and Cairo units. The default value is 96, meaning that a 10 point font will be 13 units high. (10 * 96. / 72. = 13.3).
- Since pangomm 1.10
- Parameters
-
dpi | The resolution in "dots per inch". (Physical inches aren't actually involved; the terminology is conventional.). |
◆ wrap()
A Glib::wrap() method for this object.
- Parameters
-
object | The C instance. |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |
- Returns
- A C++ instance that wraps this C instance.