summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-03-23 14:41:01 +0100
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-05-30 09:56:18 +0200
commit2f529db909f99a2a503ca0347a9d70742b7f05ba (patch)
tree0d1428aea962cc8b5b51b603ef36f0471a8dbf9b /vcl/inc
parent5d7a28fd2dd7f0c1696d4d8989a5a547e3f2e531 (diff)
tdf#116498 Use win metrics for 'DIN Light' font
This adds a special treatment for fonts which rely on the win metrics for correct line spacing calculation. At the moment, only 'DIN Light' is known to need that treatment. Change-Id: Idd9fd6f63083ab7a706e0cbcd33a947d4949d4e9 Reviewed-on: https://gerrit.libreoffice.org/53962 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/impfontmetricdata.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/inc/impfontmetricdata.hxx b/vcl/inc/impfontmetricdata.hxx
index f08e86fdc914..28e0ab3798a2 100644
--- a/vcl/inc/impfontmetricdata.hxx
+++ b/vcl/inc/impfontmetricdata.hxx
@@ -23,6 +23,7 @@
#include <vcl/dllapi.h>
#include <tools/ref.hxx>
#include "fontattributes.hxx"
+#include "sft.hxx"
#include <vector>
@@ -96,6 +97,8 @@ public:
int nUPEM);
private:
+ bool ShouldUseWinMetrics(vcl::TTGlobalFontInfo& rInfo);
+
// font instance attributes from the font request
long mnHeight; // Font size
long mnWidth; // Reference Width