|
|
|
@ -1011,20 +1011,26 @@ FT_BEGIN_HEADER |
|
|
|
|
* User-supplied data that is passed to each drawing callback. |
|
|
|
|
* |
|
|
|
|
* clip_box :: |
|
|
|
|
* An optional clipping box. It is only used in direct rendering mode. |
|
|
|
|
* Note that coordinates here should be expressed in _integer_ pixels |
|
|
|
|
* (and not in 26.6 fixed-point units). |
|
|
|
|
* An optional span clipping box expressed in _integer_ pixels |
|
|
|
|
* (not in 26.6 fixed-point units). |
|
|
|
|
* |
|
|
|
|
* @note: |
|
|
|
|
* An anti-aliased glyph bitmap is drawn if the @FT_RASTER_FLAG_AA bit |
|
|
|
|
* flag is set in the `flags` field, otherwise a monochrome bitmap is |
|
|
|
|
* generated. |
|
|
|
|
* |
|
|
|
|
* If the @FT_RASTER_FLAG_DIRECT bit flag is set in `flags`, the raster |
|
|
|
|
* will call the `gray_spans` callback to draw gray pixel spans. This |
|
|
|
|
* allows direct composition over a pre-existing bitmap through |
|
|
|
|
* user-provided callbacks to perform the span drawing and composition. |
|
|
|
|
* Not supported by the monochrome rasterizer. |
|
|
|
|
* The @FT_RASTER_FLAG_AA bit flag must be set in the `flags` to |
|
|
|
|
* generate an anti-aliased glyph bitmap, otherwise a monochrome bitmap |
|
|
|
|
* is generated. The `target` should have appropriate pixel mode and its |
|
|
|
|
* dimensions define the clipping region. |
|
|
|
|
* |
|
|
|
|
* If both `( @FT_RASTER_FLAG_AA | @FT_RASTER_FLAG_DIRECT )` bit flags |
|
|
|
|
* are set in `flags`, the raster will call an @FT_SpanFunc callback |
|
|
|
|
* `gray_spans` with `user` data as an argument ignoring `target`. This |
|
|
|
|
* allows direct composition over a pre-existing user surface to perform |
|
|
|
|
* the span drawing and composition. To optionally clip the spans, set |
|
|
|
|
* the @FT_RASTER_FLAG_CLIP flag and `clip_box`. The monochrome raster |
|
|
|
|
* does not support the direct mode. |
|
|
|
|
* |
|
|
|
|
* The gray-level rasterizer always uses 256 gray levels. If you want |
|
|
|
|
* fewer gray levels, you have to use @FT_RASTER_FLAG_DIRECT and reduce |
|
|
|
|
* the levels in the callback function. |
|
|
|
|
*/ |
|
|
|
|
typedef struct FT_Raster_Params_ |
|
|
|
|
{ |
|
|
|
|