]> git.wh0rd.org - fontconfig.git/commitdiff
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 d9dc7f21e8da8a24b70878a970f3b53cc20ce26f..d5c4be8b92c082352dc99b2a6fd01795b1d2b901 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 439a82c10336f6bb5c8d927a4dc7415ccf106265..a02187de175f4c45dbe41e3bf5d48951d27703e6 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>