summaryrefslogtreecommitdiff
path: root/pango/pangoft2-render.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pangoft2-render.c')
-rw-r--r--pango/pangoft2-render.c97
1 files changed, 51 insertions, 46 deletions
diff --git a/pango/pangoft2-render.c b/pango/pangoft2-render.c
index 45ac5820..f2da8e7f 100644
--- a/pango/pangoft2-render.c
+++ b/pango/pangoft2-render.c
@@ -579,16 +579,18 @@ pango_ft2_renderer_draw_trapezoid (PangoRenderer *renderer,
/**
* pango_ft2_render_layout_subpixel:
- * @bitmap: a FT_Bitmap to render the layout onto
- * @layout: a #PangoLayout
- * @x: the X position of the left of the layout (in Pango units)
- * @y: the Y position of the top of the layout (in Pango units)
+ * @bitmap: a FT_Bitmap to render the layout onto
+ * @layout: a `PangoLayout`
+ * @x: the X position of the left of the layout (in Pango units)
+ * @y: the Y position of the top of the layout (in Pango units)
*
- * Render a #PangoLayout onto a FreeType2 bitmap, with he
+ * 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.)
+ * pixels.
+ *
+ * (Using this will avoid extra inaccuracies from rounding
+ * to integer pixels multiple times, even if the final glyph
+ * positions are integers.)
*
* Since: 1.6
*/
@@ -616,12 +618,12 @@ pango_ft2_render_layout_subpixel (FT_Bitmap *bitmap,
/**
* pango_ft2_render_layout:
- * @bitmap: a FT_Bitmap to render the layout onto
- * @layout: a #PangoLayout
- * @x: the X position of the left of the layout (in pixels)
- * @y: the Y position of the top of the layout (in pixels)
+ * @bitmap: a FT_Bitmap to render the layout onto
+ * @layout: a `PangoLayout`
+ * @x: the X position of the left of the layout (in pixels)
+ * @y: the Y position of the top of the layout (in pixels)
*
- * Render a #PangoLayout onto a FreeType2 bitmap
+ * Render a `PangoLayout` onto a FreeType2 bitmap
*/
void
pango_ft2_render_layout (FT_Bitmap *bitmap,
@@ -634,16 +636,18 @@ pango_ft2_render_layout (FT_Bitmap *bitmap,
/**
* pango_ft2_render_layout_line_subpixel:
- * @bitmap: a FT_Bitmap to render the line onto
- * @line: a #PangoLayoutLine
- * @x: the x position of start of string (in Pango units)
- * @y: the y position of baseline (in Pango units)
+ * @bitmap: a FT_Bitmap to render the line onto
+ * @line: a `PangoLayoutLine`
+ * @x: the x position of start of string (in Pango units)
+ * @y: the y position of baseline (in Pango units)
*
- * Render a #PangoLayoutLine onto a FreeType2 bitmap, with he
+ * 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.)
+ * pixels.
+ *
+ * (Using this will avoid extra inaccuracies from rounding
+ * to integer pixels multiple times, even if the final glyph
+ * positions are integers.)
*
* Since: 1.6
*/
@@ -671,12 +675,12 @@ pango_ft2_render_layout_line_subpixel (FT_Bitmap *bitmap,
/**
* pango_ft2_render_layout_line:
- * @bitmap: a FT_Bitmap to render the line onto
- * @line: a #PangoLayoutLine
- * @x: the x position of start of string (in pixels)
- * @y: the y position of baseline (in pixels)
+ * @bitmap: a FT_Bitmap to render the line onto
+ * @line: a `PangoLayoutLine`
+ * @x: the x position of start of string (in pixels)
+ * @y: the y position of baseline (in pixels)
*
- * Render a #PangoLayoutLine onto a FreeType2 bitmap
+ * Render a `PangoLayoutLine` onto a FreeType2 bitmap
*/
void
pango_ft2_render_layout_line (FT_Bitmap *bitmap,
@@ -689,25 +693,26 @@ pango_ft2_render_layout_line (FT_Bitmap *bitmap,
/**
* pango_ft2_render_transformed:
- * @bitmap: the FreeType2 bitmap onto which to draw the string
- * @font: the font in which to draw the string
- * @matrix: (nullable): a #PangoMatrix, or %NULL to use an identity
- * transformation
- * @glyphs: the glyph string to draw
- * @x: the x position of the start of the string (in Pango
- * units in user space coordinates)
- * @y: the y position of the baseline (in Pango units
- * in user space coordinates)
+ * @bitmap: the FreeType2 bitmap onto which to draw the string
+ * @font: the font in which to draw the string
+ * @matrix: (nullable): a `PangoMatrix`
+ * @glyphs: the glyph string to draw
+ * @x: the x position of the start of the string (in Pango
+ * units in user space coordinates)
+ * @y: the y position of the baseline (in Pango units
+ * in user space coordinates)
*
- * Renders a #PangoGlyphString onto a FreeType2 bitmap, possibly
+ * 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
+ * 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
+ * must have been loaded using a `PangoContext` with an identical
* transformation matrix to that passed in to this function.
*
* Since: 1.6
- **/
+ */
void
pango_ft2_render_transformed (FT_Bitmap *bitmap,
const PangoMatrix *matrix,
@@ -734,14 +739,14 @@ pango_ft2_render_transformed (FT_Bitmap *bitmap,
/**
* pango_ft2_render:
- * @bitmap: the FreeType2 bitmap onto which to draw the string
- * @font: the font in which to draw the string
- * @glyphs: the glyph string to draw
- * @x: the x position of the start of the string (in pixels)
- * @y: the y position of the baseline (in pixels)
+ * @bitmap: the FreeType2 bitmap onto which to draw the string
+ * @font: the font in which to draw the string
+ * @glyphs: the glyph string to draw
+ * @x: the x position of the start of the string (in pixels)
+ * @y: the y position of the baseline (in pixels)
*
- * Renders a #PangoGlyphString onto a FreeType2 bitmap.
- **/
+ * Renders a `PangoGlyphString` onto a FreeType2 bitmap.
+ */
void
pango_ft2_render (FT_Bitmap *bitmap,
PangoFont *font,