diff options
| author | Mattias Andrée <m@maandree.se> | 2026-02-22 13:40:20 +0100 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-02-22 13:40:20 +0100 |
| commit | aa668395a925a28b80f5596d3759d4da2280144e (patch) | |
| tree | 95ee508af14a2cfaf2657e3cab8831878628d893 | |
| parent | Update e-mail (diff) | |
| download | librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket-aa668395a925a28b80f5596d3759d4da2280144e.tar.gz librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket-aa668395a925a28b80f5596d3759d4da2280144e.tar.bz2 librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket-aa668395a925a28b80f5596d3759d4da2280144e.tar.xz | |
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
| -rw-r--r-- | README | 8 | ||||
| -rw-r--r-- | librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.7 | 6 | ||||
| -rw-r--r-- | librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.h | 2 | ||||
| -rw-r--r-- | rtgrpblib_create_raster.3 | 4 | ||||
| -rw-r--r-- | rtgrpblib_draw_circular_arc.3 | 2 | ||||
| -rw-r--r-- | rtgrpblib_fill_shapes.3 | 10 | ||||
| -rw-r--r-- | rtgrpblib_set_draftness.3 | 2 |
7 files changed, 17 insertions, 17 deletions
@@ -8,20 +8,20 @@ DESCRIPTION outline determines whether a shape adds or subtracts to the image (the absolute values of the result is used in the image). Furthermore this means that the library only supports curve types that are used for drawing glyphs; specifically - this means that lines and quadratic Bézier curves are supported by cause this + this means that lines and quadratic Bézier curves are supported because this is what is required to draw vectorised bitmap fonts and TrueType fonts, but also cubic Bézier curves as this is required for OpenType fonts and circular arcs as this is commonly used for corners when stroking the outline of a glyph. - The create an image, first create a buffer using rtgrpblib_create_raster(3) + To create an image, first create a buffer using rtgrpblib_create_raster(3) (if you already have one that is large enough, you can reinitialise it with - rtgrpblib_reset_raster(3)), and than using the drawing functions + rtgrpblib_reset_raster(3)), and then use the drawing functions (rtgrpblib_draw_linear_bezier(3), rtgrpblib_draw_quadratic_bezier(3), rtgrpblib_draw_cubic_bezier(3), and rtgrpblib_draw_circular_arc(3)) to draw the components of each shape's outline. When done, create an image using the rtgrpblib_fill_shapes(3) function: you will receive a ink-level map, where the value 0 means background, and 1 means foreground, and values - between are colours between (no transfer function is applied). + between are colours in between (no transfer function is applied). NOTES Rifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket (hyphenation: diff --git a/librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.7 b/librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.7 index aff9ec4..6bd70a5 100644 --- a/librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.7 +++ b/librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.7 @@ -11,18 +11,18 @@ whether a shape adds or subtracts to the image (the absolute values of the result is used in the image). Furthermore this means that the library only supports curve types that are used for drawing glyphs; specifically this means that lines and -quadratic Bézier curves are supported by cause this is what is +quadratic Bézier curves are supported because this is what is required to draw vectorised bitmap fonts and TrueType fonts, but also cubic Bézier curves as this is required for OpenType fonts and circular arcs as this is commonly used for corners when stroking the outline of a glyph. .PP -The create an image, first create a buffer using +To create an image, first create a buffer using .BR rtgrpblib_create_raster (3) (if you already have one that is large enough, you can reinitialise it with .BR rtgrpblib_reset_raster (3)), -and than using the drawing functions +and then use the drawing functions .RB ( rtgrpblib_draw_linear_bezier (3), .BR rtgrpblib_draw_quadratic_bezier (3), .BR rtgrpblib_draw_cubic_bezier (3), diff --git a/librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.h b/librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.h index ef53fea..7c76e35 100644 --- a/librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.h +++ b/librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.h @@ -57,7 +57,7 @@ int rtgrpblib_reset_raster(RTGRPBLIB_RASTER *raster, size_t width, size_t height * When drawing a curve, the size of each step the library * takes will be proportional to the draftness value, but * will also depend on other factors. Doubling the draftness - * value with halve (disregarind overheads) the time it takes + * value will halve (disregarding overheads) the time it takes * to draw any given curve. * * @param raster The drawing buffer to reconfigure diff --git a/rtgrpblib_create_raster.3 b/rtgrpblib_create_raster.3 index 63250e9..12c353d 100644 --- a/rtgrpblib_create_raster.3 +++ b/rtgrpblib_create_raster.3 @@ -2,7 +2,7 @@ .SH NAME rtgrpblib_create_raster - Create a drawing buffer -.SH DESCRIPTION +.SH SYNOPSIS .LP .nf #include <librifunktionsteckensnittsglyfrasteriseringsprogrambiblioteket.h> @@ -21,7 +21,7 @@ The function creates a buffer, with configurations, that the library's drawing functions can draw curves in, which the .BR rtgrpblib_fill_shapes (3) -function can ultimately process to generate a image. +function can ultimately process to generate an image. .PP The created buffer will be .I width diff --git a/rtgrpblib_draw_circular_arc.3 b/rtgrpblib_draw_circular_arc.3 index 49b0c70..2903fa1 100644 --- a/rtgrpblib_draw_circular_arc.3 +++ b/rtgrpblib_draw_circular_arc.3 @@ -21,7 +21,7 @@ The .BR rtgrpblib_draw_circular_arc () function draws onto .I raster -a circular arch, as part of a contour. The arc's circle +a circular arc, as part of a contour. The arc's circle is defined as the circle with the midpoint .RI ( x0 , .IR y0 ) diff --git a/rtgrpblib_fill_shapes.3 b/rtgrpblib_fill_shapes.3 index 8c01995..4d8e574 100644 --- a/rtgrpblib_fill_shapes.3 +++ b/rtgrpblib_fill_shapes.3 @@ -16,8 +16,8 @@ Link with .SH DESCRIPTION The .BR rtgrpblib_fill_shapes () -function creates an user-usable image from a drawing. -After drawing each shapes component curves, to +function creates a user-usable image from a drawing. +After drawing each shape's component curves, to .IR raster , this function creates an image of these shapes filled in, and stores the image in the @@ -25,9 +25,9 @@ and stores the image in the buffer. .PP All drawn shapes must be closed. When shapes overlap, -the subtract from each other if the are drawn in opposite -angular direction, and add to each other if the are drawn -in angular direction. +they subtract from each other if they are drawn in opposite +angular directions, and add to each other if they are drawn +in the same angular direction. .PP .I image shall be a row-major ordered buffer of single-element cells diff --git a/rtgrpblib_set_draftness.3 b/rtgrpblib_set_draftness.3 index 43fd83f..f34caa4 100644 --- a/rtgrpblib_set_draftness.3 +++ b/rtgrpblib_set_draftness.3 @@ -27,7 +27,7 @@ The default value is 0.5. When drawing a curve, the size of each step the library takes will be proportional to the draftness value, but will also depend on other factors. Doubling the draftness -value with halve (disregarind overheads) the time it takes +value will halve (disregarding overheads) the time it takes to draw any given curve. .SH RETURN VALUES |
