From ddde1797a900b818b96fc0818d9df0efacb5ac69 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 20 Mar 2003 02:01:01 +0000 Subject: [PATCH] strtod under some locales requires digits before the decimal --- doc/fontconfig-user.sgml | 8 ++++++-- fonts.conf.in | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) 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 -- 2.39.5