/inkscape/share/extensions/Barcode/ |
H A D | Ean2.py | 36 family = ((number[0] * 10) + number[1]) % 4 37 return START + '01'.join(self.encode_interleaved(family, number, FAMS))
|
H A D | Ean5.py | 36 family = sum([int(n)*int(m) for n, m in zip(number, '39393')]) % 10 37 return START + '01'.join(self.encode_interleaved(family, number, FAMS))
|
H A D | BaseEan.py | 50 def encode_interleaved(self, family, number, fams=FAMILIES): 53 encset = self.intarray(fams[family]) 63 # The right side is always the reverse of the left's family '1'
|
/inkscape/src/libnrtype/ |
H A D | font-lister.h | 35 * allows for random access to the font-family list and the font-style list. 36 * Setting the font-family updates the font-style list. "Style" in this case 37 * refers to everything but family and size (e.g. italic/oblique, weight). 39 * This class handles font-family lists and fonts that are not on the system, 43 * Pango. It is similar to the CSS font shorthand except that font-family comes 49 * example, best matches should only be done with the first font-family 50 * in a font-family list. If the first font-family is not on the system 51 * then a generic font-family should be used (sans-serif -> Sans). 55 * "Font" includes family an 75 Gtk::TreeModelColumn<Glib::ustring> family; member in struct:Inkscape::FontLister::FontListClass [all...] |
H A D | font-lister.cpp | 27 // CSS dictates that font family names are case insensitive. 34 static const char* sp_font_family_get_name(PangoFontFamily* family) argument 36 const char* name = pango_font_family_get_name(family); 53 /* Create default styles for use when font-family is unknown on system. */ 63 // Traverse through the family names and set up the list store 74 (*treeModelIter)[FontList.family] = familyName; 147 // std::cout << " Not on system: " << row[FontList.family] << std::endl; 159 /* In case this is a fallback list, check if first font-family on system. */ 165 if (row[FontList.onSystem] && familyNamesAreEqual(tokens[0], row[FontList.family])) { 177 (*treeModelIter)[FontList.family] 349 const gchar *family = pango_font_description_get_family(descr); local 625 Glib::ustring family = ui.first; local 878 get_row_for_font(Glib::ustring family) argument 897 get_path_for_font(Glib::ustring family) argument 979 get_best_style_match(Glib::ustring family, Glib::ustring target_style) argument 1072 gchar *family; local 1090 gchar *family = 0; local [all...] |
H A D | Layout-TNG-Input.cpp | 252 Glib::ustring family; local 254 family = "sans-serif"; 260 if (!family.empty()) family += ','; 261 family += *f; 267 pango_font_description_set_family(descr,family.c_str());
|
H A D | FontFactory.h | 70 // Map type for gathering UI family and style names 111 /// Returns strings to be used in the UI for family and face (or "style" as the column is labeled) 117 // Retrieves style information about a family in a newly allocated GList. 124 font_instance* FaceFromDescr(char const *family, char const *style); 129 font_instance* Face(char const *family, 150 // During various works, for example to handle font-family lists and fonts that are not
|
H A D | FontFactory.cpp | 207 Glib::ustring family; local 212 // For now, keep it as family name taken from pango 216 family = pangoFamily; 220 return family; 284 // Gather the family names as listed by Pango 311 // Gather the styles for this family 319 // description to get the UI family and face strings 350 // font family is to support the @font rules from CSS. 548 font_instance *font_factory::FaceFromDescr(char const *family, char const *style) argument 551 pango_font_description_set_family(temp_descr,family); 760 Face(char const *family, int variant, int style, int weight, int stretch, int , int ) argument [all...] |
/inkscape/src/ui/dialog/ |
H A D | font-substitution.cpp | 160 Glib::ustring family = ""; local 164 family = te_get_layout(item)->getFontFamily(0); 165 setFontSpans.insert(family); 170 family = SP_TEXT(item->parent)->layout.getFontFamily(0); 171 setFontSpans.insert(family); 182 family = SP_TEXT(parent_text)->layout.getFontFamily(0); 186 family = SP_TEXT(parent_text)->layout.getFontFamily(ii); 187 setFontSpans.insert(family);
|
/inkscape/src/widgets/ |
H A D | font-selector.cpp | 47 GtkWidget *family; member in struct:SPFontSelector 126 * Create a widget with children for selecting font-family, font-style, and font-size. 134 GtkWidget *f = gtk_frame_new(_("Font family")); 190 g_object_set_data (G_OBJECT(fsel), "family-treeview", fsel->family_treeview); 294 // Callback when family changed, updates style list for new family. 299 // We need our own copy of the style list store since the font-family 312 // Next get family name with its style list 313 gchar *family; local 315 gtk_tree_model_get (model, &iter, 0, &family, 439 char *family=NULL, *style=NULL; local 488 Glib::ustring family = ui.first; local [all...] |
H A D | ink-comboboxentry-action.cpp | 7 * Check comma separated values in text against list. (Useful for font-family fallbacks.) 499 * For the font-family list we need to handle two cases: 501 * In this case we use row number as the font-family list can have duplicate 505 * Text is not in the list store (i.e. default font-family is not on system): 757 gboolean check = true; // If true, font-family is on system. 799 // This is useful for checking if all fonts in a font-family fallback 901 gchar *family = 0; local 902 gtk_tree_model_get(model, iter, 0, &family, -1); 905 gtk_entry_set_text (GTK_ENTRY (entry), family ); local 909 action->text = family; [all...] |
H A D | text-toolbar.cpp | 123 // Font family 143 css_font_family_unquote( new_family ); // Remove quotes around font family names. 146 // the font-family may be the same for all, the styles might be different. 150 std::cout << " Old family: " << fontlister->get_font_family() << std::endl; 151 std::cout << " New family: " << new_family << std::endl; 156 // Changed font-family 159 // New font-family, not in document, not on system (could be fallback list) 161 act->active = 0; // New family is always at top of list. 179 _("Text: Change font family")); 1136 * Font family (fon 1481 Glib::ustring family = gtk_entry_get_text ( entry ); local [all...] |
/inkscape/doc/ |
H A D | keys.css | 39 font-family: sans-serif; 189 font-family: sans-serif;
|
/inkscape/src/ |
H A D | document-subset.cpp | 342 Siblings &family=parent_record->children; local 343 family.insert(family.begin()+index,
|
H A D | style-internal.cpp | 372 // Recalculate based on new font-size, font-family inherited from parent 592 // expressible in the current font family, but that's difficult to 922 if( name.compare( "font-family" ) == 0 ) { 949 if( name.compare( "font-family" ) == 0 ) { 2224 // The rest must be font-family... 2226 std::string family = str_s.substr( str_s.find( param ) ); local 2228 style->font_family.readIfUnset( family.c_str() );
|
/inkscape/share/extensions/test/ |
H A D | inkweb-debug.js | 318 "font-family:sans-serif;" + 330 'body { font-family:sans-serif; font-size:12px; padding:5px; margin:0px; }' +
|