summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c5d6777)
raw | patch | inline | side by side (parent: c5d6777)
author | miklosh <miklosh@users.sourceforge.net> | |
Mon, 30 Jul 2007 11:34:18 +0000 (11:34 +0000) | ||
committer | miklosh <miklosh@users.sourceforge.net> | |
Mon, 30 Jul 2007 11:34:18 +0000 (11:34 +0000) |
src/extension/internal/pdfinput/svg-builder.cpp | patch | blob | history |
diff --git a/src/extension/internal/pdfinput/svg-builder.cpp b/src/extension/internal/pdfinput/svg-builder.cpp
index b0c6c8feaa7065217c9f2a939f760d533f5e4410..0aa2067d41f51c632dd7f66a02a92c8072d4036b 100644 (file)
max_scale = h_scale;
}
double css_font_size = max_scale * state->getFontSize();
+ if ( font->getType() == fontType3 ) {
+ double *font_matrix = font->getFontMatrix();
+ if ( font_matrix[0] != 0.0 ) {
+ css_font_size *= font_matrix[3] / font_matrix[0];
+ }
+ }
os_font_size << css_font_size;
sp_repr_css_set_property(_font_style, "font-size", os_font_size.str().c_str());
}
// Calculate new text matrix
- double *font_matrix = font->getFontMatrix();
- NR::Matrix nr_font_matrix(font_matrix[0], font_matrix[1], font_matrix[2],
- font_matrix[3], font_matrix[4], font_matrix[5]);
NR::Matrix new_text_matrix(text_matrix[0] * state->getHorizScaling(),
text_matrix[1] * state->getHorizScaling(),
-text_matrix[2], -text_matrix[3],
new_text_matrix[i] /= max_scale;
}
}
- _text_matrix = nr_font_matrix * new_text_matrix;
+ _text_matrix = new_text_matrix;
_font_scaling = max_scale;
_current_font = font;
_invalidated_style = true;