diff options
-rw-r--r-- | svgio/inc/svgio/svgreader/svgtools.hxx | 2 | ||||
-rw-r--r-- | svgio/source/svgreader/svgstyleattributes.cxx | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/svgio/inc/svgio/svgreader/svgtools.hxx b/svgio/inc/svgio/svgreader/svgtools.hxx index 71fee9e63732..27b687f6f2eb 100644 --- a/svgio/inc/svgio/svgreader/svgtools.hxx +++ b/svgio/inc/svgio/svgreader/svgtools.hxx @@ -36,7 +36,7 @@ namespace svgio #endif // recommended value for this device dependent unit, see CSS2 section 4.3.2 Lengths -#define F_SVG_PIXEL_PER_INCH 90.0 +#define F_SVG_PIXEL_PER_INCH 96.0 // common non-token strings struct commonStrings diff --git a/svgio/source/svgreader/svgstyleattributes.cxx b/svgio/source/svgreader/svgstyleattributes.cxx index 171545d09e95..0bb05b4341d1 100644 --- a/svgio/source/svgreader/svgstyleattributes.cxx +++ b/svgio/source/svgreader/svgstyleattributes.cxx @@ -2337,8 +2337,9 @@ namespace svgio return maFontSizeNumber; } - // default is 'medium' - const double aDefaultSize = 12.0; + // default size is 'medium' or 16px, which is equal to the default PPI used in svgio ( 96.0 ) + // converted to pixels + const double aDefaultSize = F_SVG_PIXEL_PER_INCH / 6.0; //In CSS2, the suggested scaling factor between adjacent indexes is 1.2 switch(maFontSize) |