Imported Upstream version 2.11.93
[platform/upstream/fontconfig.git] / doc / FcWeightFromOpenType.3
1 .\" auto-generated by docbook2man-spec from docbook-utils package
2 .TH "FcWeightFromOpenType" "3" "09 3月 2015" "Fontconfig 2.11.93" ""
3 .SH NAME
4 FcWeightFromOpenType \- Convert from OpenType weight values to fontconfig ones
5 .SH SYNOPSIS
6 .nf
7 \fB#include <fontconfig/fontconfig.h>
8 .sp
9 int FcWeightFromOpenType (int\fIot_weight\fB);
10 .fi\fR
11 .SH "DESCRIPTION"
12 .PP
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.
20 .SH "SINCE"
21 .PP
22 version 2.11.91