Imported Upstream version 2.13.0
[platform/upstream/fontconfig.git] / doc / FcWeightFromOpenTypeDouble.3
1 .\" auto-generated by docbook2man-spec from docbook-utils package
2 .TH "FcWeightFromOpenTypeDouble" "3" "06 3月 2018" "Fontconfig 2.13.0" ""
3 .SH NAME
4 FcWeightFromOpenTypeDouble \- Convert from OpenType weight values to fontconfig ones
5 .SH SYNOPSIS
6 .nf
7 \fB#include <fontconfig/fontconfig.h>
8 .sp
9 double FcWeightFromOpenTypeDouble (double\fIot_weight\fB);
10 .fi\fR
11 .SH "DESCRIPTION"
12 .PP
13 \fBFcWeightFromOpenTypeDouble\fR returns an double value
14 to use with FC_WEIGHT, from an double 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 doubleerpolates
18 between various FC_WEIGHT_* constants. As such, the returned value does not
19 necessarily match any of the predefined constants.
20 .SH "SINCE"
21 .PP
22 version 2.12.92