[sdf] Improve documentation.
This commit is contained in:
parent
c5516e0f7c
commit
e592982a83
|
@ -3307,13 +3307,13 @@ FT_BEGIN_HEADER
|
||||||
* pixels and use the @FT_PIXEL_MODE_LCD_V mode.
|
* pixels and use the @FT_PIXEL_MODE_LCD_V mode.
|
||||||
*
|
*
|
||||||
* FT_RENDER_MODE_SDF ::
|
* FT_RENDER_MODE_SDF ::
|
||||||
* This mode corresponds to 8-bit signed distance fields (SDF)
|
* This mode corresponds to 8-bit, single-channel signed distance field
|
||||||
* bitmaps. Each pixel in a SDF bitmap contains information about the
|
* (SDF) bitmaps. Each pixel in the SDF grid is the value from the
|
||||||
* nearest edge of the glyph outline. The distances are calculated
|
* pixel's position to the nearest glyph's outline. The distances are
|
||||||
* from the center of the pixel and are positive if they are filled by
|
* calculated from the center of the pixel and are positive if they are
|
||||||
* the outline (i.e., inside the outline) and negative otherwise.
|
* filled by the outline (i.e., inside the outline) and negative
|
||||||
* Check the note below on how to convert the output values to usable
|
* otherwise. Check the note below on how to convert the output values
|
||||||
* data.
|
* to usable data.
|
||||||
*
|
*
|
||||||
* @note:
|
* @note:
|
||||||
* The selected render mode only affects vector glyphs of a font.
|
* The selected render mode only affects vector glyphs of a font.
|
||||||
|
|
|
@ -41,7 +41,8 @@
|
||||||
* file `ftbsdf.c` for more.
|
* file `ftbsdf.c` for more.
|
||||||
*
|
*
|
||||||
* * The basic idea of generating the SDF is taken from Viktor Chlumsky's
|
* * The basic idea of generating the SDF is taken from Viktor Chlumsky's
|
||||||
* research paper.
|
* research paper. The paper explains both single and multi-channel
|
||||||
|
* SDF, however, this implementation only generates single-channel SDF.
|
||||||
*
|
*
|
||||||
* Chlumsky, Viktor: Shape Decomposition for Multi-channel Distance
|
* Chlumsky, Viktor: Shape Decomposition for Multi-channel Distance
|
||||||
* Fields. Master's thesis. Czech Technical University in Prague,
|
* Fields. Master's thesis. Czech Technical University in Prague,
|
||||||
|
|
Loading…
Reference in New Issue