Package org.gnome.pango
Class GlyphUnit
The
PangoGlyphUnit
type is used to store dimensions within
Pango.
Dimensions are stored in 1/PANGO_SCALE of a device unit. (A device unit might be a pixel for screen display, or a point on a printer.) PANGO_SCALE is currently 1024, and may change in the future (unlikely though), but you should not depend on its exact value.
The PANGO_PIXELS() macro can be used to convert from glyph units into device units with correct rounding.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic GlyphUnit[]
fromNativeArray
(MemorySegment address, long length, boolean free) Methods inherited from class io.github.jwharm.javagi.base.Alias
equals, getAddressValues, getBooleanValues, getByteValues, getCharacterValues, getDoubleValues, getFloatValues, getIntegerValues, getLongValues, getShortValues, getValue, hashCode, setValue
-
Constructor Details
-
GlyphUnit
public GlyphUnit(int value) Create a new GlyphUnit with the provided value
-
-
Method Details
-
fromNativeArray
-