Searched defs:font (Results 1 - 24 of 24) sorted by relevance

/inkscape/share/extensions/
H A Drender_alphabetsoup_config.py580 units = 36 # pixels per unit box in font
581 font = "alphabet_soup/" # location of font images variable
H A Dhershey.py22 import hersheydata #data file w/ Hershey font data namespace
59 help="The selected font face when Apply was pressed" )
68 font = eval('hersheydata.' + str(self.options.fontface))
82 w = draw_svg_text(q, font, w, 0, g)
95 w = draw_svg_text(r, font, w, v, g)
H A Drender_alphabetsoup.py43 font = render_alphabetsoup_config.font variable
282 image, width, height = loadPath( font+syntax[state][0] ) # load the image
/inkscape/src/libnrtype/
H A Done-glyph.h33 PangoFont *font; /**< Font this glyph uses. (For bidi text, you need several fonts.) member in struct:one_glyph
34 * When rendering glyphs, check if this font is the one you're using. */
H A DFontFactory.cpp23 #include "libnrtype/font-instance.h"
138 Glib::ustring font_factory::ConstructFontSpecification(PangoFontDescription *font) argument
142 g_assert(font);
144 if (font) {
145 // Once the format for the font specification is decided, it must be
150 PangoFontDescription *copy = pango_font_description_copy(font);
165 Glib::ustring font_factory::ConstructFontSpecification(font_instance *font) argument
169 g_assert(font);
171 if (font) {
172 pangoString = ConstructFontSpecification(font
400 font_instance *font = NULL; local
582 font_instance *font = NULL; local
[all...]
H A DLayout-TNG-Output.cpp18 #include "font-instance.h"
89 if (it_span->font) it_span->font->Unref();
96 void Layout::FontMetrics::set(font_instance *font) argument
98 if( font != NULL ) {
99 ascent = font->GetTypoAscent();
100 descent = font->GetTypoDescent();
101 xheight = font->GetXHeight();
102 ascent_max = font->GetMaxAscent();
103 descent_max = font
[all...]
H A DLayout-TNG-Compute.cpp13 #include "font-instance.h"
79 /** to stop pango from hinting its output, the font factory creates all fonts very large.
97 font_instance *font; member in struct:Inkscape::Text::Layout::Calculator::PangoItemInfo
99 PangoItemInfo() : item(NULL), font(NULL) {}
104 Layout::Span (constant font, direction, etc), except that they are from
118 double line_height_multiplier; /// calculated from the font-height css property
373 char_width += span->start.iter_span->font_size * para.pango_items[span->end.iter_span->pango_item_index].font->Advance(span->end.iter_span->glyph_string->glyphs[span->end_glyph_index].glyph, false);
376 char_width += span->start.iter_span->font_size * para.pango_items[span->end.iter_span->pango_item_index].font->Advance(span->end.iter_span->glyph_string->glyphs[span->end_glyph_index].glyph, true);
516 // rest are determined by 'font-size' and 'line-height' (and not by any
623 if ((_flow._input_stream[unbroken_span.input_index]->Type() == TEXT_SOURCE) && (new_span.font
1065 font_instance *font = text_source->styleGetFontInstance(); local
1393 font_instance *font = text_source->styleGetFontInstance(); local
1466 font_instance *font = text_source->styleGetFontInstance(); local
1845 font_instance *font = text_source->styleGetFontInstance(); local
[all...]
H A DLayout-TNG.h78 - Span: A convenient subset of a chunk with the same font, style,
86 - Glyph: a rendering primitive for font engines. A ligature glyph will
200 thinks will look good. This is our value, as a multiple of font-size. */
232 \param style The font style. Layout will hold a reference to this
402 /** Returns the font family of the indexed span */
612 * Keep track of font metrics. Two use cases:
613 * 1. Keep track of ascent, descent, and x-height of an individual font.
617 * a computed value of 'line-height' that differs from 'font-size'. "Internal" leading
618 * which is specified inside a font is not used in CSS. The 'font
842 font_instance *font; member in struct:Inkscape::Text::Layout::Span
[all...]
/inkscape/src/display/
H A Dnr-svgfonts.h49 SPFont* font; member in class:SvgFont
H A Ddrawing-text.cpp19 #include "libnrtype/font-instance.h"
44 DrawingGlyphs::setGlyph(font_instance *font, int glyph, Geom::Affine const &trans) argument
50 if (font) font->Ref();
52 _font = font;
82 the font's drawing box. Extra space is to hold overline or underline, if present. All
83 characters in a font use the same ascent and descent, but different widths. This lets leading
87 the left and right edges of the box defined in the font.
119 sees a nondrawable glyph. Instead mock up a pickbox for them using font characteristics.
219 DrawingText::addComponent(font_instance *font, in argument
[all...]
/inkscape/src/libuemf/
H A Dsymbol_convert.c18 * symbol.) That way Symbol bullet can map in and out, while other font bullet an remain in that
19 * font's bullet glyph.
50 which came as part of the X11-font-encodings rpm on Mandriva 2010.
60 the font and change font + code (symbol, zapf dingbats, wingdings).
232 0x2219, // 0x9E BULLET (use BULLET operator, so normal font BULLET will not convert to Symbol BULLET)
332 /* characters from zapf dingbat font, conversion to a unicode font. Change both the
333 code and the font on conversion. These are untested as the development machine did
334 not have the font installe
884 isNon(char *font) argument
919 NonToUnicode(uint32_t *text, char *font) argument
[all...]
H A Duwmf_print.c79 \param font U_FONT object (as a char * pointer)
82 const char *font
84 printf("Height:%d ", *(int16_t *)(font + offsetof(U_FONT,Height )));
85 printf("Width:%d ", *(int16_t *)(font + offsetof(U_FONT,Width )));
86 printf("Escapement:%d ", *(int16_t *)(font + offsetof(U_FONT,Escapement )));
87 printf("Orientation:%d ", *(int16_t *)(font + offsetof(U_FONT,Orientation )));
88 printf("Weight:%d ", *(int16_t *)(font + offsetof(U_FONT,Weight )));
89 printf("Italic:0x%2.2X ", *(uint8_t *)(font + offsetof(U_FONT,Italic )));
90 printf("Underline:0x%2.2X ", *(uint8_t *)(font + offsetof(U_FONT,Underline )));
91 printf("StrikeOut:0x%2.2X ", *(uint8_t *)(font
1293 const char *font; /* Note, because of possible struct alignment issue have to use char * to reference the data */ local
[all...]
H A Duwmf.c818 \param FaceName Name of font. ANSI Latin1, null terminated.
834 char *FaceName //!< Name of font. ANSI Latin1, null terminated.
836 U_FONT *font; local
839 font = (U_FONT *) calloc(1,slen + U_SIZE_FONT_CORE); /* use calloc to auto fill in terminating '\0'*/
840 if(font){
841 font->Height = Height;
842 font->Width = Width;
843 font->Escapement = Escapement;
844 font->Orientation = Orientation;
845 font
4379 U_WMRCREATEFONTINDIRECT_set(U_FONT *font) argument
[all...]
H A Duwmf.h797 uint8_t FaceName[1]; //!< Name of font. ANSI Latin1, null terminated.
1589 uint16_t valuew[2]; //!< if 1 bit set font mapper selects only matching aspect fonts. reassemble/store the value using valuew, the 32 bit value is not aligned.
2010 U_FONT font; //!< Font Object member in struct:__anon395
2397 char *U_WMRCREATEFONTINDIRECT_set(U_FONT *font);
2665 int U_WMRCREATEFONTINDIRECT_get(const char *contents, const char **font);
/inkscape/src/ui/dialog/
H A Dfont-substitution.cpp19 #include "font-substitution.h"
45 #include "libnrtype/font-instance.h"
66 int show_dlg = prefs->getInt("/options/font/substitutedlg", 0);
123 prefs->setInt("/options/font/substitutedlg", 0);
218 // CSS font fallbacks can have more that one font listed, split the font list
222 Glib::ustring font = vFonts[i]; local
224 size_t startpos = font.find_first_not_of(" \n\r\t");
225 size_t endpos = font
262 getSubstituteFontName(Glib::ustring font) argument
[all...]
H A Dglyphs.cpp35 #include "libnrtype/font-instance.h"
39 #include "widgets/font-selector.h"
728 font_instance* font = 0; local
730 font = font_factory::Default()->FaceFromFontSpecification( fontspec.c_str() );
733 if (font) {
759 int glyphId = font->MapUnicodeChar(ch);
H A Dfind.cpp511 vFontTokenNames.push_back("font-family:");
512 vFontTokenNames.push_back("-inkscape-font-specification:");
526 // Exact match fails since the "font-family:" is in the token, since the find was exact it still works with false below
582 bool font = check_font.get_active(); local
653 if (font) {
H A Dsvg-fonts-dialog.cpp31 #include "sp-font-face.h"
38 #include "sp-font.h"
279 row[_columns.label] = lbl ? lbl : (id ? id : "font");
308 SPFont* font = get_selected_spfont(); local
309 if (!font) return;
312 for (obj=font->children; obj; obj=obj->next){
446 SPGlyph *new_glyph(SPDocument* document, SPFont *font, const int count) argument
448 g_return_val_if_fail(font != NULL, NULL);
459 // Append the new glyph node to the current font
460 font
473 SPFont* font = get_selected_spfont(); local
643 SPFont* font = get_selected_spfont(); local
853 set_font_family(SPFont* font, char* str) argument
868 SPFont* font = new_font(doc); local
[all...]
/inkscape/src/widgets/
H A Dspw-utilities.cpp254 sp_set_font_size_recursive (GtkWidget *w, gpointer font) argument
256 guint size = GPOINTER_TO_UINT (font);
264 << " font-size: " << pt_size << "pt;\n"
282 gtk_container_foreach (GTK_CONTAINER(w), (GtkCallback) sp_set_font_size_recursive, font); local
293 sp_set_font_size (GtkWidget *w, guint font) argument
295 sp_set_font_size_recursive (w, GUINT_TO_POINTER(font));
/inkscape/src/
H A Dstyle.h97 /** Which substyle of the font (CSS 2. CSS 3 redefines as shorthand) */
99 /** Weight of the font */
101 /** Stretch of the font */
103 /** Size of the font */
110 SPIFont font; member in class:SPStyle
111 /** Full font name, as font_factory::ConstructFontSpecification would give, for internal use. */
310 * Return a font feature string useful for Pango.
/inkscape/src/extension/internal/
H A Dcairo-render-context.cpp1605 // TODO investigate why the font is being ignored:
1606 unsigned int CairoRenderContext::_showGlyphs(cairo_t *cr, PangoFont * /*font*/, std::vector<CairoGlyphInfo> const &glyphtext, bool path)
1650 CairoRenderContext::renderGlyphtext(PangoFont *font, Geom::Affine const &font_matrix, argument
1660 gpointer fonthash = (gpointer)font;
1669 LOGFONTA *lfa = pango_win32_font_logfont(font);
1683 PangoFcFont *fc_font = PANGO_FC_FONT(font);
1698 // set the given font matrix
1710 _showGlyphs(_cr, font, glyphtext, FALSE);
1713 _showGlyphs(_cr, font, glyphtext, TRUE);
1744 _showGlyphs(_cr, font, glyphtex
[all...]
H A Dwmf-inout.cpp1151 U_FONT font; local
1160 memcpy(&font,memfont,U_SIZE_FONT_CORE); //make sure it is in a properly aligned structure before touching it
1169 double font_size = pix_to_abs_size( d, font.Height );
1173 Typically this will set the font to the desired exact size. If some peculiar size
1179 font.Weight == U_FW_THIN ? SP_CSS_FONT_WEIGHT_100 :
1180 font.Weight == U_FW_EXTRALIGHT ? SP_CSS_FONT_WEIGHT_200 :
1181 font.Weight == U_FW_LIGHT ? SP_CSS_FONT_WEIGHT_300 :
1182 font.Weight == U_FW_NORMAL ? SP_CSS_FONT_WEIGHT_400 :
1183 font.Weight == U_FW_MEDIUM ? SP_CSS_FONT_WEIGHT_500 :
1184 font
[all...]
/inkscape/src/extension/internal/pdfinput/
H A Dsvg-builder.cpp40 #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(); local
1022 if (font->getName()) {
1023 _font_specification = font->getName()->getCString();
1028 // Prune the font nam
[all...]
H A Dpdf-parser.cpp2193 GfxFont *font = res->lookupFont(args[0].getName()); local
2195 if (!font) {
2196 // unsetting the font (drawing no text) is better than using the
2203 printf(" font: tag=%s name='%s' %g\n",
2204 font->getTag()->getCString(),
2205 font->getName() ? font->getName()->getCString() : "???",
2210 font->incRefCnt();
2211 state->setFont(font, args[1].getNum());
2306 error(errSyntaxError, getPos(), "No font i
2400 GfxFont *font; local
[all...]

Completed in 125 milliseconds