Package ch.bailu.gtk.pangocairo
Klasse FontMap
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.PropertyHolder
ch.bailu.gtk.type.Interface
ch.bailu.gtk.pangocairo.FontMap
- Alle implementierten Schnittstellen:
PointerInterface
`PangoCairoFontMap` is an interface exported by font maps for
use with Cairo.
The actual type of the font map will depend on the particular
font technology Cairo was compiled to use.
use with Cairo.
The actual type of the font map will depend on the particular
font technology Cairo was compiled to use.
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Feldübersicht
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic FontMap
_new()
Creates a new `PangoCairoFontMap` object.Veraltet.static ClassHandler
static FontMap
Gets a default `PangoCairoFontMap` to use with Cairo.int
Gets the type of Cairo font backend that @fontmap uses.static int
static long
static TypeSystem.TypeSize
double
Gets the resolution for the fontmap.static long
static TypeSystem.TypeSize
static FontMap
newForFontType
(int fonttype) Creates a new `PangoCairoFontMap` object of the type suitable
to be used with cairo font backend of type @fonttype.void
Sets a default `PangoCairoFontMap` to use with Cairo.void
setResolution
(double dpi) Sets the resolution for the fontmap.Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrProperty
Von Klasse geerbte Methoden ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Konstruktordetails
-
FontMap
-
-
Methodendetails
-
getClassHandler
-
createContext
Veraltet.Create a `PangoContext` for the given fontmap.- Gibt zurück:
- the newly created context; free with g_object_unref().
-
getFontType
public int getFontType()Gets the type of Cairo font backend that @fontmap uses.- Gibt zurück:
- the `cairo_font_type_t` cairo font backend type
-
getResolution
public double getResolution()Gets the resolution for the fontmap.
See [method@PangoCairo.FontMap.set_resolution].- Gibt zurück:
- the resolution in "dots per inch"
-
setDefault
public void setDefault()Sets a default `PangoCairoFontMap` 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 [func@PangoCairo.FontMap.new].
A value of %NULL for @fontmap will cause the current default
font map to be released and a new default font map to be created
on demand, using [func@PangoCairo.FontMap.new]. -
setResolution
public void setResolution(double dpi) Sets the resolution for the fontmap.
This is a scale factor between
points specified in a `PangoFontDescription` and Cairo units. The
default value is 96, meaning that a 10 point font will be 13
units high. (10 * 96. / 72. = 13.3).- Parameter:
dpi
- the resolution in "dots per inch". (Physical inches aren't actually involved; the terminology is conventional.)
-
getDefault
Gets a default `PangoCairoFontMap` to use with Cairo.
Note that the type of the returned object will depend on the
particular font backend Cairo was compiled to use; you generally
should only use the `PangoFontMap` and `PangoCairoFontMap`
interfaces on the returned object.
The default Cairo fontmap can be changed by using
[method@PangoCairo.FontMap.set_default]. This can be used to
change the Cairo font backend that the default fontmap uses
for example.
Note that since Pango 1.32.6, the default fontmap is per-thread.
Each thread gets its own default fontmap. In this way, PangoCairo
can be used safely from multiple threads.- Gibt zurück:
- the default PangoCairo fontmap for the current thread. This object is owned by Pango and must not be freed.
-
_new
Creates a new `PangoCairoFontMap` object.
A fontmap is used to cache information about available fonts,
and holds certain global parameters such as the resolution.
In most cases, you can use `func@PangoCairo.font_map_get_default]
instead.
Note that the type of the returned object will depend
on the particular font backend Cairo was compiled to use;
You generally should only use the `PangoFontMap` and
`PangoCairoFontMap` interfaces on the returned object.
You can override the type of backend returned by using an
environment variable %PANGOCAIRO_BACKEND. Supported types,
based on your build, are fc (fontconfig), win32, and coretext.
If requested type is not available, NULL is returned. Ie.
this is only useful for testing, when at least two backends
are compiled in.- Gibt zurück:
- the newly allocated `PangoFontMap`, which should be freed with g_object_unref().
-
newForFontType
Creates a new `PangoCairoFontMap` object of the type suitable
to be used with cairo font backend of type @fonttype.
In most cases one should simply use [func@PangoCairo.FontMap.new], or
in fact in most of those cases, just use [func@PangoCairo.FontMap.get_default].- Parameter:
fonttype
- desired #cairo_font_type_t- Gibt zurück:
- the newly allocated `PangoFontMap` of suitable type which should be freed with g_object_unref(), or %NULL if the requested cairo font backend is not supported / compiled in.
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-