1 .\" auto-generated by docbook2man-spec from docbook-utils package
2 .TH "FcWeightFromOpenType" "3" "09 3月 2015" "Fontconfig 2.11.93" ""
4 FcWeightFromOpenType \- Convert from OpenType weight values to fontconfig ones
7 \fB#include <fontconfig/fontconfig.h>
9 int FcWeightFromOpenType (int\fIot_weight\fB);
13 \fBFcWeightFromOpenType\fR returns an integer value
14 to use with FC_WEIGHT, from an integer in the 1..1000 range, resembling
15 the numbers from OpenType specification's OS/2 usWeight numbers, which
16 are also similar to CSS font-weight numbers. If input is negative,
17 zero, or greater than 1000, returns -1. This function linearly interpolates
18 between various FC_WEIGHT_* constants. As such, the returned value does not
19 necessarily match any of the predefined constants.