diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2018-01-03 15:59:24 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2018-01-03 15:59:56 +0000 |
commit | 706535e10715938c10e65e727feb607373ac1a47 (patch) | |
tree | 2d3088f450895058a8211f51bca24b0b4c59f772 /doc | |
parent | 97898b1158542d3bc5f8a95fe2aa1829512cceb8 (diff) |
Add FcWeightTo/FromOpenTypeDouble()
No idea why I didn't add these as double to begin with.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/fcweight.fncs | 42 |
1 files changed, 32 insertions, 10 deletions
diff --git a/doc/fcweight.fncs b/doc/fcweight.fncs index 2872dd6..4884b27 100644 --- a/doc/fcweight.fncs +++ b/doc/fcweight.fncs @@ -19,18 +19,41 @@ * 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 +@RET@ double +@FUNC@ FcWeightFromOpenTypeDouble +@TYPE1@ double @ARG1@ ot_weight @PURPOSE@ Convert from OpenType weight values to fontconfig ones @DESC@ -<function>FcWeightFromOpenType</function> returns an integer value -to use with FC_WEIGHT, from an integer in the 1..1000 range, resembling +<function>FcWeightFromOpenTypeDouble</function> 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 +zero, or greater than 1000, returns -1. This function linearly doubleerpolates between various FC_WEIGHT_* constants. As such, the returned value does not necessarily match any of the predefined constants. +@SINCE@ 2.12.92 +@@ + +@RET@ double +@FUNC@ FcWeightToOpenTypeDouble +@TYPE1@ double @ARG1@ ot_weight +@PURPOSE@ Convert from fontconfig weight values to OpenType ones +@DESC@ +<function>FcWeightToOpenTypeDouble</function> is the inverse of +<function>FcWeightFromOpenType</function>. 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@ +<function>FcWeightFromOpenType</function> is like +<function>FcWeightFromOpenTypeDouble</function> but with integer arguments. +Use the other function instead. @SINCE@ 2.11.91 @@ @@ -39,9 +62,8 @@ necessarily match any of the predefined constants. @TYPE1@ int @ARG1@ ot_weight @PURPOSE@ Convert from fontconfig weight values to OpenType ones @DESC@ -<function>FcWeightToOpenType</function> is the inverse of -<function>FcWeightFromOpenType</function>. 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. +<function>FcWeightToOpenType</function> is like +<function>FcWeightToOpenTypeDouble</function> but with integer arguments. +Use the other function instead. @SINCE@ 2.11.91 @@ |