strtod under some locales requires digits before the decimal

This commit is contained in:
Keith Packard 2003-03-20 02:01:01 +00:00
parent f4007a6728
commit ddde1797a9
2 changed files with 7 additions and 3 deletions

View File

@ -318,8 +318,12 @@ the property are given the indicated binding. 'mode' is one of:
</programlisting>
</para></refsect2>
<refsect2><title><sgmltag>int</>, <sgmltag>double</>, <sgmltag>string</>, <sgmltag>bool</></title><para>
These elements hold a single value of the indicated type. <sgmltag>bool</> elements
hold either true or false.
These elements hold a single value of the indicated type. <sgmltag>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).
</para></refsect2>
<refsect2><title><sgmltag>matrix</></title><para>
This element holds the four <sgmltag>double</> elements of an affine

View File

@ -283,7 +283,7 @@
<edit name="matrix" mode="assign">
<times>
<name>matrix</name>
<matrix><double>1</double><double>.2</double>
<matrix><double>1</double><double>0.2</double>
<double>0</double><double>1</double>
</matrix>
</times>