.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "FcWeightFromOpenTypeDouble" "3" "2022/03/31" "Fontconfig 2.14.0" ""
.SH NAME
FcWeightFromOpenTypeDouble \- Convert from OpenType weight values to fontconfig ones
.SH SYNOPSIS
.sp
\fB#include
.sp
double FcWeightFromOpenTypeDouble (double\fIot_weight\fB);
\fR
.SH "DESCRIPTION"
.PP
\fBFcWeightFromOpenTypeDouble\fR 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 interpolates
between various FC_WEIGHT_* constants. As such, the returned value does not
necessarily match any of the predefined constants.
.SH "SINCE"
.PP
version 2.12.92