1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 >FcWeightFromOpenTypeDouble</TITLE
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
13 HREF="x103.html#AEN3996"><LINK
16 HREF="x103.html"><LINK
18 TITLE="FcWeightToOpenTypeDouble"
19 HREF="fcweighttoopentypedouble.html"></HEAD
30 SUMMARY="Header navigation table"
49 ><<< Previous</A
61 HREF="fcweighttoopentypedouble.html"
63 >Next >>></A
72 NAME="FCWEIGHTFROMOPENTYPEDOUBLE"
74 >FcWeightFromOpenTypeDouble</H1
82 >FcWeightFromOpenTypeDouble -- Convert from OpenType weight values to fontconfig ones</DIV
84 CLASS="REFSYNOPSISDIV"
104 CLASS="FUNCSYNOPSISINFO"
105 >#include <fontconfig/fontconfig.h>
116 >FcWeightFromOpenTypeDouble</TT
139 >FcWeightFromOpenTypeDouble</TT
140 > returns an double value
141 to use with FC_WEIGHT, from an double in the 1..1000 range, resembling
142 the numbers from OpenType specification's OS/2 usWeight numbers, which
143 are also similar to CSS font-weight numbers. If input is negative,
144 zero, or greater than 1000, returns -1. This function linearly doubleerpolates
145 between various FC_WEIGHT_* constants. As such, the returned value does not
146 necessarily match any of the predefined constants.
164 SUMMARY="Footer navigation table"
177 ><<< Previous</A
193 HREF="fcweighttoopentypedouble.html"
195 >Next >>></A
209 HREF="x103.html#AEN3996"
217 >FcWeightToOpenTypeDouble</TD