diff options
| author | Mattias Andrée <maandree@kth.se> | 2023-01-30 22:58:00 +0100 | 
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2023-01-30 22:58:00 +0100 | 
| commit | a4b5b706053b4796a3418345a49f0e6ff0623572 (patch) | |
| tree | ad9dafed98b05d0349ec5f171783f8ddce7841a9 /README | |
| parent | Fix warnings, add restrict, and add function attributes (diff) | |
| download | libglitter-a4b5b706053b4796a3418345a49f0e6ff0623572.tar.gz libglitter-a4b5b706053b4796a3418345a49f0e6ff0623572.tar.bz2 libglitter-a4b5b706053b4796a3418345a49f0e6ff0623572.tar.xz | |
Add libglitter_redistribute_energy_double stub
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
| -rw-r--r-- | README | 43 | 
1 files changed, 23 insertions, 20 deletions
| @@ -8,29 +8,32 @@ DESCRIPTION  	rasterise glyphs nor does it know about the montor's subpixel  	layout or rendering configurations. -	To use libglitter you first apply hinting to the text so that -	the glyph outlines aligns with the output's pixel-grid as -	closely as possible. The next step is to get the output's -	subpixel arrangement and scaling factor, then assuming that -	the output's subpixel arrangement is subpixel-rendering -	compatible and that its native resolution is used, you -	rasterise the text using greyscale-antialiasing into a raster -	sized according to the output's horizontal and vertical +	To use libglitter you first (optionally) apply hinting to the +	text so that the glyph outlines aligns with the output's +	pixel-grid as closely as possible. The next step is to get +	the output's subpixel arrangement and scaling factor, then +	assuming that the output's subpixel arrangement is subpixel- +	rendering compatible and that its native resolution is used, +	you rasterise the text using greyscale-antialiasing into a +	raster sized according to the output's horizontal and vertical  	subpixel densities (rather than pixel densities as normally  	done with greyscale-antialiasing; some subpixels may have be  	counted multiple times depending on the subpixel arrangement). -	After this you create an uninitialised colour raster for text -	and the output's pixel density, and split it into one raster -	per colour channel using libglitter_split_uint64_raster(3) or -	libglitter_split_uint32_raster(3), this is when libglitter is -	first used in this process; alternatively you create one -	raster for each colour channel directly. Then you use -	libglitter_compose_double(3), libglitter_compose_float(3), -	libglitter_compose_uint64(3), libglitter_compose_uint32(3), -	libglitter_compose_uint16(3), or libglitter_compose_uint8(3) -	to create the subpixel-antialiased image of the text; you may -	have to first call libglitter_reorder_rasters(3) to put the -	rasters in the expected order. +	At this point, depending on final result, you may (will +	probably) want to use libglitter_redistribute_energy_double(3) +	or libglitter_redistribute_energy_float(3) to make the text a +	bit blurrier but reduce colour fringing. After this you create +	an uninitialised colour raster for text and the output's pixel +	density, and split it into one raster per colour channel using +	libglitter_split_uint64_raster(3) or libglitter_split_uint32_- +	raster(3), this is when libglitter is first used in this +	process; alternatively you create one raster for each colour +	channel directly. Then you use libglitter_compose_double(3), +	libglitter_compose_float(3), libglitter_compose_uint64(3), +	libglitter_compose_uint32(3), libglitter_compose_uint16(3), or +	libglitter_compose_uint8(3) to create the subpixel-antialiased +	image of the text; you may have to first call libglitter_- +	reorder_rasters(3) to put the rasters in the expected order.  	An optional next step is to use lessen the intensity of the  	subpixel-antialiasing with libglitter_desaturate_double(3), | 
