Commit ddde1797 authored by Keith Packard's avatar Keith Packard
Browse files

strtod under some locales requires digits before the decimal

parent f4007a67
......@@ -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
......
......@@ -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>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment