Lines Matching defs:font
40 #include "libnrtype/font-instance.h"
915 * Used for text output when glyphs are buffered till a font change
952 Scan the available fonts to find the font name that best matches PDFname.
963 // At least the first word of the font name should match.
986 * This array holds info about translating font weight names to more or less CSS equivalents
1008 * \brief Updates _font_style according to the font set in parameter state
1020 GfxFont *font = state->getFont();
1022 if (font->getName()) {
1023 _font_specification = font->getName()->getCString();
1028 // Prune the font name to get the correct font family name
1029 // In a PDF font names can look like this: IONIPB+MetaPlusBold-Italic
1049 if (font->getFamily()) { // if font family is explicitly given use it.
1050 sp_repr_css_set_property(_font_style, "font-family", font->getFamily()->getCString());
1055 // Find the font that best matches the stripped down (orig)name (Bug LP #179589).
1056 sp_repr_css_set_property(_font_style, "font-family", _BestMatchingFont(font_family).c_str());
1058 sp_repr_css_set_property(_font_style, "font-family", font_family);
1063 if (font->isItalic()) {
1064 sp_repr_css_set_property(_font_style, "font-style", "italic");
1068 sp_repr_css_set_property(_font_style, "font-style", "italic");
1070 sp_repr_css_set_property(_font_style, "font-style", "oblique");
1075 sp_repr_css_set_property(_font_style, "font-variant", "normal");
1078 GfxFont::Weight font_weight = font->getWeight();
1088 sp_repr_css_set_property(_font_style, "font-weight", (gchar *)&weight_num);
1091 // Apply the font weight translations
1102 sp_repr_css_set_property(_font_style, "font-weight", css_font_weight);
1110 GfxFont::Stretch font_stretch = font->getStretch();
1144 sp_repr_css_set_property(_font_style, "font-stretch", stretch_value);
1150 if ( font->getType() == fontType3 ) {
1151 double *font_matrix = font->getFontMatrix();
1157 sp_repr_css_set_property(_font_style, "font-size", os_font_size.str().c_str());
1160 if ( font->getWMode() == 0 ) {
1166 _current_font = font;
1212 // Cancel out scaling by font size in text matrix
1311 // Create a font specification string and save the attribute in the style
1315 sp_repr_css_set_property(glyph.style, "-inkscape-font-specification", properFontSpec.c_str());
1435 sp_repr_css_merge(new_glyph.style, _font_style); // Merge with font style