The `PangoFT2FontMap` is the `PangoFontMap` implementation for FreeType fonts.
Create a new `PangoFT2FontMap` object.
A fontmap is used to cache information about available fonts,
and holds certain global parameters such as the resolution and
the default substitute function (see
[method@PangoFT2.FontMap.set_default_substitute]).
the newly created fontmap object. Unref
with g_object_unref() when you are finished with it.
Returns a `PangoFT2FontMap`.
This font map is cached and should
not be freed. If the font map is no longer needed, it can
be released with pango_ft2_shutdown_display(). Use of the
global PangoFT2 fontmap is deprecated; use pango_ft2_font_map_new()
instead.
a `PangoFT2FontMap`.
Create a `PangoContext` for the given fontmap.
Use [method@Pango.FontMap.create_context] instead.
the newly created context; free with
g_object_unref().
a `PangoFT2FontMap`
Sets a function that will be called to do final configuration
substitution on a `FcPattern` before it is used to load
the font.
This function can be used to do things like set
hinting and antialiasing options.
Use [method@PangoFc.FontMap.set_default_substitute]
instead.
a `PangoFT2FontMap`
function to call to to do final config tweaking
on #FcPattern objects.
data to pass to @func
function to call when @data is no longer used.
Sets the horizontal and vertical resolutions for the fontmap.
a `PangoFT2FontMap`
dots per inch in the X direction
dots per inch in the Y direction
Call this function any time the results of the
default substitution function set with
pango_ft2_font_map_set_default_substitute() change.
That is, if your substitution function will return different
results for the same input pattern, you must call this function.
Use [method@PangoFc.FontMap.substitute_changed]
instead.
a `PangoFT2FontMap`
Function type for doing final config tweaking on prepared FcPatterns.
the FcPattern to tweak.
user data.
Gets the `PangoCoverage` for a `PangoFT2Font`.
Use [method@Pango.Font.get_coverage] instead.
a `PangoCoverage`
a Pango FT2 font
a language tag.
Returns the native FreeType2 `FT_Face` structure
used for this `PangoFont`.
This may be useful if you want to use FreeType2
functions directly.
Use [method@PangoFc.Font.lock_face] instead; when you are
done with a face from [method@PangoFc.Font.lock_face], you
must call [method@PangoFc.Font.unlock_face].
a pointer to a `FT_Face` structure,
with the size set correctly
a `PangoFont`
Retrieves kerning information for a combination of two glyphs.
Use pango_fc_font_kern_glyphs() instead.
The amount of kerning (in Pango units) to
apply for the given combination of glyphs.
a `PangoFont`
the left `PangoGlyph`
the right `PangoGlyph`
Retrieves a `PangoContext` for the default PangoFT2 fontmap
(see pango_ft2_font_map_for_display()) and sets the resolution
for the default fontmap to @dpi_x by @dpi_y.
Use [method@Pango.FontMap.create_context] instead.
the new `PangoContext`
the horizontal DPI of the target device
the vertical DPI of the target device
Return the index of a glyph suitable for drawing unknown
characters with @font, or %PANGO_GLYPH_EMPTY if no suitable
glyph found.
If you want to draw an unknown-box for a character that
is not covered by the font, use PANGO_GET_UNKNOWN_GLYPH()
instead.
a glyph index into @font, or %PANGO_GLYPH_EMPTY
a `PangoFont`
Renders a `PangoGlyphString` onto a FreeType2 bitmap.
the FreeType2 bitmap onto which to draw the string
the font in which to draw the string
the glyph string to draw
the x position of the start of the string (in pixels)
the y position of the baseline (in pixels)
Render a `PangoLayout` onto a FreeType2 bitmap
a FT_Bitmap to render the layout onto
a `PangoLayout`
the X position of the left of the layout (in pixels)
the Y position of the top of the layout (in pixels)
Render a `PangoLayoutLine` onto a FreeType2 bitmap
a FT_Bitmap to render the line onto
a `PangoLayoutLine`
the x position of start of string (in pixels)
the y position of baseline (in pixels)
Render a `PangoLayoutLine` onto a FreeType2 bitmap, with he
location specified in fixed-point Pango units rather than
pixels.
(Using this will avoid extra inaccuracies from rounding
to integer pixels multiple times, even if the final glyph
positions are integers.)
a FT_Bitmap to render the line onto
a `PangoLayoutLine`
the x position of start of string (in Pango units)
the y position of baseline (in Pango units)
Render a `PangoLayout` onto a FreeType2 bitmap, with he
location specified in fixed-point Pango units rather than
pixels.
(Using this will avoid extra inaccuracies from rounding
to integer pixels multiple times, even if the final glyph
positions are integers.)
a FT_Bitmap to render the layout onto
a `PangoLayout`
the X position of the left of the layout (in Pango units)
the Y position of the top of the layout (in Pango units)
Renders a `PangoGlyphString` onto a FreeType2 bitmap, possibly
transforming the layed-out coordinates through a transformation
matrix.
Note that the transformation matrix for @font is not
changed, so to produce correct rendering results, the @font
must have been loaded using a `PangoContext` with an identical
transformation matrix to that passed in to this function.
the FreeType2 bitmap onto which to draw the string
a `PangoMatrix`
the font in which to draw the string
the glyph string to draw
the x position of the start of the string (in Pango
units in user space coordinates)
the y position of the baseline (in Pango units
in user space coordinates)
Free the global fontmap. (See pango_ft2_font_map_for_display())
Use of the global PangoFT2 fontmap is deprecated.