manpagez: man pages & more
man FcWeightFromOpenTypeDouble(3)
Home | html | info | man
FcWeightFromOpenTypeDouble(3)                    FcWeightFromOpenTypeDouble(3)




NAME

       FcWeightFromOpenTypeDouble  -  Convert  from  OpenType weight values to
       fontconfig ones


SYNOPSIS

       #include <fontconfig/fontconfig.h>

       double FcWeightFromOpenTypeDouble (doubleot_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  font-weight  numbers.  If input is negative, zero, or
       greater than 1000, returns -1. This function  linearly  doubleerpolates
       between various FC_WEIGHT_* constants. As such, the returned value does
       not necessarily match any of the predefined constants.


SINCE

       version 2.12.92



Fontconfig 2.13.0                 06 3ae 2018    FcWeightFromOpenTypeDouble(3)

fontconfig 2.13.0 - Generated Thu Apr 19 19:16:08 CDT 2018
© manpagez.com 2000-2025
Individual documents may contain additional copyright information.