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.
pull/4/head
whitequark 2016-02-19 09:51:12 +00:00
parent 5c15cbf5f6
commit 923374b305
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ static const VectorGlyph &GetVectorGlyph(char32_t chr) {
return GetVectorGlyph(0xfffd); // replacement character 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) double ssglStrWidth(const std::string &str, double h)
{ {
int width = 0; int width = 0;