GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
fcft_set_scaling_filter(3) fcft fcft_set_scaling_filter(3)

fcft_set_scaling_filter - configures the filter to use when downscaling bitmap fonts

#include <fcft/fcft.h>

bool fcft_set_scaling_filter(enum fcft_scaling_filter filter);

fcft_set_scaling_filter() configures the filter the use when downscaling 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:

FCFT_SCALING_FILTER_NONE
FCFT_SCALING_FILTER_NEAREST
FCFT_SCALING_FILTER_BILINEAR
FCFT_SCALING_FILTER_CUBIC
FCFT_SCALING_FILTER_LANCZOS3

FCFT_SCALING_FILTER_NONE disables filtering.

FCFT_SCALING_FILTER_NEAREST and FCFT_SCALING_FILTER_BILINEAR are traditional filters, with nearest being the fastest.

FCFT_SCALING_FILTER_CUBIC and FCFT_SCALING_FILTER_LANCZOS3 are both examples of separable convolution filters. Cubic is faster than lanczos3, but with slightly worse result. However, both produce much better looking glyphs than nearest.

If this function is not called, fcft defaults to FCFT_SCALING_FILTER_CUBIC.

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

See fcft_from_name()
2022-04-26 3.0.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.