1FcWeightFromOpenTypeDouble(3) FcWeightFromOpenTypeDouble(3)
2
3
4
6 FcWeightFromOpenTypeDouble - Convert from OpenType weight values to
7 fontconfig ones
8
10 #include <fontconfig/fontconfig.h>
11
12 double FcWeightFromOpenTypeDouble (doubleot_weight);
13
15 FcWeightFromOpenTypeDouble returns an double value to use with
16 FC_WEIGHT, from an double in the 1..1000 range, resembling the numbers
17 from OpenType specification's OS/2 usWeight numbers, which are also
18 similar to CSS font-weight numbers. If input is negative, zero, or
19 greater than 1000, returns -1. This function linearly interpolates be‐
20 tween various FC_WEIGHT_* constants. As such, the returned value does
21 not necessarily match any of the predefined constants.
22
24 version 2.12.92
25
26
27
28Fontconfig 2.14.0 31 3月 2022 FcWeightFromOpenTypeDouble(3)