Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
fcft_set_scaling_filter(3)	     fcft	    fcft_set_scaling_filter(3)

NAME
       fcft_set_scaling_filter - configures the	filter to use when downscaling
       bitmap fonts

SYNOPSIS
       #include	<fcft/fcft.h>

       bool fcft_set_scaling_filter(enum fcft_scaling_filter filter);

DESCRIPTION
       fcft_set_scaling_filter() configures the	filter the use when downscal-
       ing bitmap fonts	(typically emoji fonts). The setting affects all font
       instances.

       This function does not clear the	glyph caches and should	therefore be
       called before any calls to fcft_codepoint_rasterize().

       Possible	values for filter are:

       o   FCFT_SCALING_FILTER_NONE
       o   FCFT_SCALING_FILTER_NEAREST
       o   FCFT_SCALING_FILTER_BILINEAR
       o   FCFT_SCALING_FILTER_CUBIC
       o   FCFT_SCALING_FILTER_LANCZOS3

       FCFT_SCALING_FILTER_NONE	disables filtering.

       FCFT_SCALING_FILTER_NEAREST and FCFT_SCALING_FILTER_BILINEAR are	tradi-
       tional filters, with nearest being the fastest.

       FCFT_SCALING_FILTER_CUBIC and FCFT_SCALING_FILTER_LANCZOS3 are both ex-
       amples of separable convolution filters.	Cubic is faster	than lanczos3,
       but with	slightly worse result. However,	both produce much better look-
       ing glyphs than nearest.

       If this function	is not called, fcft defaults to	FCFT_SCALING_FIL-
       TER_CUBIC.

RETURN VALUE
       On success, fcft_set_scaling_filter() returns true. On error, false is
       returned.

EXAMPLE
       See fcft_from_name()

3.0.1				  2022-04-03	    fcft_set_scaling_filter(3)

NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | EXAMPLE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=fcft_set_scaling_filter&sektion=3&manpath=FreeBSD+13.1-RELEASE+and+Ports>

home | help