Sign in Join
FPDoc Onlineexperiment

TT_Set_Raster_Palette function

In unit LazFreeType

Set the gray-level palette used for font-smoothing.

Declaration

pascal
function TT_Set_Raster_Palette(palette: TT_Gray_Palette): TT_Error

Arguments

palette

Values for the gray-level palette.

Function result

Success or error status value returned from the routine.

Description

palette is an array of Byte values which define the gray-level palette used in the default rasterizer for the library. palette uses the following convention for bytes values in the array:

Byte Value Usage in a Gray-level Palette
Byte PositionContains
0 Background (White)
1 Light
2 Medium
3 Dark
4 Foreground (Black)

The return value is a TT_Error type with the error or success status for the routine. The value is TT_Err_Ok if the routine completed successfully.

See also

  • TT_Gray_Palette
  • TTTypes.TT_Error

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.