head 1.1; branch 1.1.1; access; symbols netbsd-11-0-RC6:1.1.1.4 netbsd-11-0-RC5:1.1.1.4 netbsd-11-0-RC4:1.1.1.4 netbsd-11-0-RC3:1.1.1.4 netbsd-11-0-RC2:1.1.1.4 netbsd-11-0-RC1:1.1.1.4 netbsd-11:1.1.1.4.0.2 netbsd-11-base:1.1.1.4 netbsd-10-1-RELEASE:1.1.1.2 fontconfig-2-15-0:1.1.1.4 netbsd-9-4-RELEASE:1.1.1.2 netbsd-10-0-RELEASE:1.1.1.2 netbsd-10-0-RC6:1.1.1.2 netbsd-10-0-RC5:1.1.1.2 netbsd-10-0-RC4:1.1.1.2 netbsd-10-0-RC3:1.1.1.2 netbsd-10-0-RC2:1.1.1.2 netbsd-10-0-RC1:1.1.1.2 fontconfig-2-14-2:1.1.1.4 fontconfig-2-14-1:1.1.1.3 fontconfig-2-14-0:1.1.1.3 netbsd-10:1.1.1.2.0.4 netbsd-10-base:1.1.1.2 netbsd-9-3-RELEASE:1.1.1.2 netbsd-9-2-RELEASE:1.1.1.2 netbsd-9-1-RELEASE:1.1.1.2 netbsd-9-0-RELEASE:1.1.1.2 netbsd-9-0-RC2:1.1.1.2 netbsd-9-0-RC1:1.1.1.2 netbsd-9:1.1.1.2.0.2 netbsd-9-base:1.1.1.2 fontconfig-2-13-1:1.1.1.2 fontconfig-2-12-4:1.1.1.1 xorg:1.1.1; locks; strict; comment @# @; 1.1 date 2017.08.29.08.32.29; author mrg; state Exp; branches 1.1.1.1; next ; commitid W3QEaYRxw8Coj55A; 1.1.1.1 date 2017.08.29.08.32.29; author mrg; state Exp; branches; next 1.1.1.2; commitid W3QEaYRxw8Coj55A; 1.1.1.2 date 2019.03.08.09.40.40; author mrg; state Exp; branches; next 1.1.1.3; commitid RSaD7TxAJ7LJOxeB; 1.1.1.3 date 2023.01.19.06.11.35; author mrg; state Exp; branches; next 1.1.1.4; commitid cvWsnf1lr9I2f7aE; 1.1.1.4 date 2023.06.20.02.19.19; author mrg; state Exp; branches; next ; commitid 1OVlq014absr4DtE; desc @@ 1.1 log @Initial revision @ text @/* * fontconfig/doc/fcweight.fncs * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that * copyright notice and this permission notice appear in supporting * documentation, and that the name of the author(s) not be used in * advertising or publicity pertaining to distribution of the software without * specific, written prior permission. The authors make no * representations about the suitability of this software for any purpose. It * is provided "as is" without express or implied warranty. * * THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO * EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THIS SOFTWARE. */ @@RET@@ int @@FUNC@@ FcWeightFromOpenType @@TYPE1@@ int @@ARG1@@ ot_weight @@PURPOSE@@ Convert from OpenType weight values to fontconfig ones @@DESC@@ FcWeightFromOpenType returns an integer value to use with FC_WEIGHT, from an integer 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. @@SINCE@@ 2.11.91 @@@@ @@RET@@ int @@FUNC@@ FcWeightToOpenType @@TYPE1@@ int @@ARG1@@ ot_weight @@PURPOSE@@ Convert from fontconfig weight values to OpenType ones @@DESC@@ FcWeightToOpenType is the inverse of FcWeightFromOpenType. If the input is less than FC_WEIGHT_THIN or greater than FC_WEIGHT_EXTRABLACK, returns -1. Otherwise returns a number in the range 1 to 1000. @@SINCE@@ 2.11.91 @@@@ @ 1.1.1.1 log @initial import of fontconfig-2.12.4 @ text @@ 1.1.1.2 log @initial import of fontconfig-2.13.1 @ text @d22 3 a24 3 @@RET@@ double @@FUNC@@ FcWeightFromOpenTypeDouble @@TYPE1@@ double @@ARG1@@ ot_weight d27 2 a28 2 FcWeightFromOpenTypeDouble returns an double value to use with FC_WEIGHT, from an double in the 1..1000 range, resembling d31 1 a31 1 zero, or greater than 1000, returns -1. This function linearly doubleerpolates a33 23 @@SINCE@@ 2.12.92 @@@@ @@RET@@ double @@FUNC@@ FcWeightToOpenTypeDouble @@TYPE1@@ double @@ARG1@@ ot_weight @@PURPOSE@@ Convert from fontconfig weight values to OpenType ones @@DESC@@ FcWeightToOpenTypeDouble is the inverse of FcWeightFromOpenType. If the input is less than FC_WEIGHT_THIN or greater than FC_WEIGHT_EXTRABLACK, returns -1. Otherwise returns a number in the range 1 to 1000. @@SINCE@@ 2.12.92 @@@@ @@RET@@ int @@FUNC@@ FcWeightFromOpenType @@TYPE1@@ int @@ARG1@@ ot_weight @@PURPOSE@@ Convert from OpenType weight values to fontconfig ones @@DESC@@ FcWeightFromOpenType is like FcWeightFromOpenTypeDouble but with integer arguments. Use the other function instead. d42 4 a45 3 FcWeightToOpenType is like FcWeightToOpenTypeDouble but with integer arguments. Use the other function instead. @ 1.1.1.3 log @initial import of fontconfig-2.14.0 @ text @d31 1 a31 1 zero, or greater than 1000, returns -1. This function linearly interpolates @ 1.1.1.4 log @initial import of fontconfig-2.14.2 @ text @d22 4 a25 4 @@RET@@ double @@FUNC@@ FcWeightFromOpenTypeDouble @@TYPE1@@ double @@ARG1@@ ot_weight @@PURPOSE@@ Convert from OpenType weight values to fontconfig ones d34 1 a34 1 @@SINCE@@ 2.12.92 d37 4 a40 4 @@RET@@ double @@FUNC@@ FcWeightToOpenTypeDouble @@TYPE1@@ double @@ARG1@@ ot_weight @@PURPOSE@@ Convert from fontconfig weight values to OpenType ones d46 1 a46 1 @@SINCE@@ 2.12.92 d49 4 a52 4 @@RET@@ int @@FUNC@@ FcWeightFromOpenType @@TYPE1@@ int @@ARG1@@ ot_weight @@PURPOSE@@ Convert from OpenType weight values to fontconfig ones d57 1 a57 1 @@SINCE@@ 2.11.91 d60 4 a63 4 @@RET@@ int @@FUNC@@ FcWeightToOpenType @@TYPE1@@ int @@ARG1@@ ot_weight @@PURPOSE@@ Convert from fontconfig weight values to OpenType ones d68 1 a68 1 @@SINCE@@ 2.11.91 @