From 923374b30502abbe3a47f446c39632a8fcb0fa35 Mon Sep 17 00:00:00 2001 From: whitequark Date: Fri, 19 Feb 2016 09:51:12 +0000 Subject: [PATCH] Set the correct scale for vector font. This was adjusted so that the height of "A" when exported to a vector file would be 10mm in a style configured for 10mm font height. --- src/glhelper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glhelper.cpp b/src/glhelper.cpp index 377e103..ce2e9f8 100644 --- a/src/glhelper.cpp +++ b/src/glhelper.cpp @@ -36,7 +36,7 @@ static const VectorGlyph &GetVectorGlyph(char32_t chr) { return GetVectorGlyph(0xfffd); // replacement character } -#define FONT_SCALE(h) ((h)/75.0) +#define FONT_SCALE(h) ((h)/87.0) double ssglStrWidth(const std::string &str, double h) { int width = 0;