svgio/inc/svgio/svgreader/svgtools.hxx | 2 +- svgio/source/svgreader/svgstyleattributes.cxx | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-)
New commits: commit 288d1f802d306dc741df60c029c50850e7e5fd6b Author: Xisco Fauli <aniste...@gmail.com> Date: Wed Jan 20 00:13:18 2016 +0100 tdf#97275 SVGIO: Change default PPI to 96 in svg import... ... thus default font size is 16px from now on. More information: https://gerrit.libreoffice.org/#/c/21542/ Change-Id: If19b5be08d57a9d630647b9ad51a4bb6956c70ed Reviewed-on: https://gerrit.libreoffice.org/21617 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Armin Le Grand <armin.le.gr...@cib.de> diff --git a/svgio/inc/svgio/svgreader/svgtools.hxx b/svgio/inc/svgio/svgreader/svgtools.hxx index 71fee9e..27b687f 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 171545d..0bb05b4 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) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits