strtod under some locales requires digits before the decimal
authorKeith Packard <keithp@keithp.com>
Thu, 20 Mar 2003 02:01:01 +0000 (02:01 +0000)
committerKeith Packard <keithp@keithp.com>
Thu, 20 Mar 2003 02:01:01 +0000 (02:01 +0000)
doc/fontconfig-user.sgml
fonts.conf.in

index d9dc7f2..d5c4be8 100644 (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
index 439a82c..a02187d 100644 (file)
                <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>