from small one page howto to huge articles all in one place
Last additions:
May 25th. 2007:
April, 26th. 2006:
| You are here: manpages
FcWeightFromOpenTypeDouble
Section: (3) Updated: 02 July 2025 Index
Return to Main Contents
NAME
FcWeightFromOpenTypeDouble - Convert from OpenType weight values to fontconfig ones
SYNOPSIS
#include <fontconfig/fontconfig.h>
double FcWeightFromOpenTypeDouble (double ot_weight);
DESCRIPTION
FcWeightFromOpenTypeDouble returns an double value
to use with FC_WEIGHT, from an double in the 1..1000 range, resembling
the numbers from OpenType specification's OS/2 usWeight numbers, which
are also similar to CSS fon-weight numbers. If input is negative,
zero, or greater than 1000, returns-1. This function linearly interpolates
between various FC_WEIGHT_* constants. As such, the returned value does not
necessarily match any of the predefined constants.
SINCE
version 2.12.92
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- SINCE
-
|