Blame doc/FcWeightFromOpenTypeDouble.3

Packit 352660
.\" auto-generated by docbook2man-spec from docbook-utils package
Packit 352660
.TH "FcWeightFromOpenTypeDouble" "3" "30 8月 2018" "Fontconfig 2.13.1" ""
Packit 352660
.SH NAME
Packit 352660
FcWeightFromOpenTypeDouble \- Convert from OpenType weight values to fontconfig ones
Packit 352660
.SH SYNOPSIS
Packit 352660
.nf
Packit 352660
\fB#include <fontconfig/fontconfig.h>
Packit 352660
.sp
Packit 352660
double FcWeightFromOpenTypeDouble (double\fIot_weight\fB);
Packit 352660
.fi\fR
Packit 352660
.SH "DESCRIPTION"
Packit 352660
.PP
Packit 352660
\fBFcWeightFromOpenTypeDouble\fR returns an double value
Packit 352660
to use with FC_WEIGHT, from an double in the 1..1000 range, resembling
Packit 352660
the numbers from OpenType specification's OS/2 usWeight numbers, which
Packit 352660
are also similar to CSS font-weight numbers. If input is negative,
Packit 352660
zero, or greater than 1000, returns -1. This function linearly doubleerpolates
Packit 352660
between various FC_WEIGHT_* constants. As such, the returned value does not
Packit 352660
necessarily match any of the predefined constants.
Packit 352660
.SH "SINCE"
Packit 352660
.PP
Packit 352660
version 2.12.92