From: Keith Packard Date: Thu, 20 Mar 2003 02:01:01 +0000 (+0000) Subject: strtod under some locales requires digits before the decimal X-Git-Tag: fc-2_1_93~14 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ddde1797a900b818b96fc0818d9df0efacb5ac69;p=fontconfig.git strtod under some locales requires digits before the decimal --- diff --git a/doc/fontconfig-user.sgml b/doc/fontconfig-user.sgml index d9dc7f2..d5c4be8 100644 --- a/doc/fontconfig-user.sgml +++ b/doc/fontconfig-user.sgml @@ -318,8 +318,12 @@ the property are given the indicated binding. 'mode' is one of: <sgmltag>int</>, <sgmltag>double</>, <sgmltag>string</>, <sgmltag>bool</> -These elements hold a single value of the indicated type. bool elements -hold either true or false. +These elements hold a single value of the indicated type. bool +elements hold either true or false. An important limitation exists in +the parsing of floating point numbers -- fontconfig requires that +the mantissa start with a digit, not a decimal point, so insert a leading +zero for purely fractional values (e.g. use 0.5 instead of .5 and -0.5 +instead of -.5). <sgmltag>matrix</> This element holds the four double elements of an affine diff --git a/fonts.conf.in b/fonts.conf.in index 439a82c..a02187d 100644 --- a/fonts.conf.in +++ b/fonts.conf.in @@ -283,7 +283,7 @@ matrix - 1.2 + 10.2 01