summaryrefslogtreecommitdiffstats
path: root/src/display/nr-svgfonts.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Clarify licensesMax Gaukler2018-11-081-1/+2
| | | | | | - add license headers to everything - convert a few files from public domain or LGPL2.1+ to GPL2+ - some archaeology to clarify which files are from which library
* Remove #include "config.h" wherever possibleEduard Braun2018-10-011-1/+0
|
* Run clang-tidy’s modernize-use-nullptr pass.Emmanuel Gil Peyrot2018-06-181-8/+8
| | | | | This replaces all NULL or 0 with nullptr when assigned to or returned as a pointer.
* Revert "Fix include order with clang-tidy check llvm-include-order"Marc Jeanmougin2018-05-041-8/+8
| | | | This reverts commit bba4ff6672494fab59286b50f6c645ad62a47e60.
* Fix include order with clang-tidy check llvm-include-orderMarc Jeanmougin2018-04-291-8/+8
|
* Move classes derived from SPObject to own directory.Tavmjong Bah2018-01-301-10/+12
| | | | A lot of header clean-up.
* Misc. typosluz.paz2018-01-081-1/+1
| | | Found via `codespell`
* Improve font editing dialog.Tavmjong Bah2016-09-061-12/+32
|\ | | | | (bzr r15109)
| * Improve font editing dialog:Tavmjong Bah2016-07-101-11/+31
| | | | | | | | | | | | | | | | 1. Allow for fonts with other than 1000 units per em. 2. Allow setting 'ascent', 'descent', etc. 3. Allow setting individual glyph horizontal advances. 4. Fix bug where 'units-per-em' was not read correctly. (bzr r15014.1.1)
* | Renamed children list in SPObjectAdrian Boguszewski2016-07-141-4/+4
| | | | | | (bzr r14954.1.21)
* | Last part of new SPObject children listAdrian Boguszewski2016-07-141-15/+20
|/ | | (bzr r14954.1.20)
* Removed SP_USE/SP_IS_USE Gtk-ish macros and cleaned affected files.Jon A. Cruz2014-11-101-46/+86
| | | (bzr r13700)
* Drop checks for ancient dependency versions. These are satisfied elsewhere.Alex Valavanis2013-03-161-3/+0
| | | (bzr r12213)
* Minor changes.Tavmjong Bah2012-12-221-1/+1
| | | (bzr r11969)
* cppcheck: Convert more C-style pointer casts to GObject or C++Alex Valavanis2012-11-111-35/+32
| | | (bzr r11867)
* Header tidying, suppress all gdk deprecation errors in gtkmmAlex Valavanis2012-02-291-0/+4
| | | (bzr r11030)
* add underscores to some member variables.Johan B. C. Engelen2012-01-171-2/+2
| | | | | add some const stuff (bzr r10900)
* Merge from trunkKrzysztof Kosi??ski2011-06-191-19/+84
|\ | | | | (bzr r9508.1.89)
| * actually fontforge flipping of y-axis for svgfont glyphs is compliant with ↵Felipe Corr??a da Silva Sanches2011-05-221-0/+30
| | | | | | | | | | the svg spec. So we need to do it also. (bzr r10218)
| * fix rendering of SVG Fonts. Apparently the glyphs were wrongly rendered ↵Felipe Corr??a da Silva Sanches2011-05-191-18/+53
| | | | | | | | | | | | | | upside-down since I was trying to make it compatible with fontforge rendering. Now, reading again the SVG spec, it seems to me that it is fontforge that renders it incorrectly. I have also added support for rendering path tags that are children of glyph and missing-glyph nodes. And also use tags. But fontforge does not seem to understand use tags in glyph descriptions... compatibility issues that we have to figure out how to solve. (bzr r10211)
* | Merge from trunkKrzysztof Kosi??ski2011-04-071-1/+1
|\| | | | | (bzr r9508.1.73)
| * update to latest 2geom !Johan B. C. Engelen2011-02-021-1/+1
| | | | | | (bzr r10025)
* | Merge from trunkKrzysztof Kosi??ski2010-11-251-1/+1
|\| | | | | (bzr r9508.1.70)
| * Super duper mega (fun!) commit: replaced encoding=utf-8 with ↵Chris Morgan2010-11-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fileencoding=utf-8 in all 1074 Vim modelines. The reason for this is that (a) setting the encoding isn't nice, and (b) Vim 7.3 (with modeline enabled) disallows it and pops up an error whenever you open any file with it ("invalid modeline"). Also corrected five deviant modestrings: * src/ui/widget/dock.cpp and src/ui/widget/dock.h: missing colon at the end * src/ui/dialog/tile.cpp: removed gratuitous second colon at the end * src/helper/units-test.h: removed gratuitous space before a colon * share/extensions/export_gimp_palette.py: missing textwidth=99 That's my geekiest commit yet. (bzr r9900)
* | Consolidate Cairo utils in display/cairo-utils.h. Fix icons harder.Krzysztof Kosi??ski2010-06-291-2/+2
|/ | | (bzr r9508.1.8)
* updating my email address in file headersFelipe Corr??a da Silva Sanches2009-12-131-1/+1
| | | (bzr r8889)
* Warning and whitespace cleanup.Jon A. Cruz2009-01-061-129/+139
| | | (bzr r7083)
* Another week coding offline...Felipe Corr??a da Silva Sanches2009-01-051-63/+70
| | | | | | | | | | | | * Adding Set Width (horiz-adv-x attribute) slider to the SVGFonts dialog. * Fixed the order of some language options at the i18n preferences page. * Fixed parsing and handling of u1 and u2 (CSS2 unicode range) attributes for kerning pair nodes * Fixed a warning in helper-fns.h * commented out unused variable in sp-font.cpp * refactoring of nr-svgfonts.cpp * using 1000 instead of horiz-adv-x when scaling the glyph coordinates. Probably should use a value based on units-per-em in the future. Or maybe accent-height, cap-height, x-height... I don't know. I should study this subject a bit more first. (bzr r7082)
* Now users can design a font within inkscape, save it and then open the Felipe Corr??a da Silva Sanches2008-12-281-13/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SVG file in Fontforge in order to export a truetype font (or other system font formarts fontforge supports). This improves previous workflow of font design using Inkscape which involved creating one SVG for each glyph. Now user only needs to create a single SVG file containing an SVGFont. Glyph kerning settings for the font can also be defined withing Inkscape itself with live preview. The kerning management still needs some improvements but is currently functional at least. Improvements in the SVGFonts dialog: * In Global Settings tab you can define the font family name. Other attributes should be added to this tab in the future. * Glyphs tab allows the user to: ** see a list (combobox) of glyphs available in the currently selected font. ** add/remove glyphs ** edit glyph name and unicode ** set the glyph curves based on a given path (selected from canvas). Same feature for the missing glyph. * Kerning tab allows user to: ** add new kerning pairs ** adjust kerning values of selected kerning pair ** live preview while adjusting the kerning values Code refactoring: * Inner classes DocumentProperties::SignalObserver and FilterEffectsDialog::SignalObserver were duplicated code and another instance would be needed in SVGFonts dialog. So, I moved it to Inkscape::XML::SignalObserver (in helper-observer.{cpp,h}) * changed SPGlyph->glyph_name and SPGlyph->unicode from char* to Glib::ustring * added sp_remove_resource to the release method in sp-font.cpp * glyph curves used to be stored (in d attribute) and rendered upside-down. Now that bug is fixed. Sorry about this huge commit. I got one week away from the Internet during a xmas travel. The lack of 'net connection made me work more intensely in Inkscape :-D Felipe Sanches (bzr r7029)
* Merge from fe-movedTed Gould2008-11-211-1/+1
| | | (bzr r6891)
* From trunkTed Gould2008-10-271-14/+36
| | | (bzr r6885)
* Merging from trunkTed Gould2008-10-111-45/+14
| | | (bzr r6884)
* Temporary switch to handle api change in Cairo 1.7+Bob Jamison2008-08-141-0/+40
| | | (bzr r6622)
* remove many needless references to n-art-bpath.hJohan B. C. Engelen2008-08-031-1/+0
| | | (bzr r6540)
* fix crash on svnfonts dialogFelipe Corr??a da Silva Sanches2008-07-121-2/+3
| | | (bzr r6262)
* * removed the auxiliary GtkWindowFelipe Corr??a da Silva Sanches2008-07-111-33/+0
| | | | | * added font preview to the SvgFonts dialog (bzr r6254)
* implement kerning by glyph-name, g1 and g2 attributesFelipe Corr??a da Silva Sanches2008-06-231-3/+15
| | | (bzr r6026)
* UnicodeRange class implementation.Felipe Corr??a da Silva Sanches2008-06-161-2/+2
| | | | | | This class represents a range of unicode codepoints as used in the u1 and u2 attributes of glyph kerning nodes. (bzr r5949)
* fix compileFelipe Corr??a da Silva Sanches2008-06-101-2/+2
| | | | | johan had forgotten to include a header (bzr r5869)
* use feed_pathvector_to_cairo in display/nr-svgfonts.cppJohan B. C. Engelen2008-06-081-12/+18
| | | (bzr r5851)
* * commenting my code so that we increase SVGFonts "bus factor" in Felipe Corr??a da Silva Sanches2008-06-011-29/+59
| | | | | | inkscape :-D http://en.wikipedia.org/wiki/Bus_factor * added some (still not really functional) code for vertical text (bzr r5777)
* * started implementing rendering of SVGFonts horizontal kerningFelipe Corr??a da Silva Sanches2008-05-311-3/+13
| | | (bzr r5773)
* * implemented text_to_glyphs, so that now we can have ligadure glyphsFelipe Corr??a da Silva Sanches2008-05-301-22/+52
| | | | | * Adapted example file to test this feature too (bzr r5763)
* fix some crashes. Now I check for the existence of the d atrtibute Felipe Corr??a da Silva Sanches2008-05-291-2/+4
| | | | | before trying to use it (bzr r5761)
* * converted nr-svgfont.cpp to C++ code so that we can render multiple ↵Felipe Corr??a da Silva Sanches2008-05-271-70/+104
| | | | | | | | instances of fonts. Currently we have one auxiliary GtkWindow for each <font> in a document. * Implemented C++ binding for cairo userfonts. This will probably be sent to cairomm soon. * Added a second font to the svgfont.svg test file. (bzr r5756)
* * add rule in configure.ac so that only who has cairo > 1.6.4 (currently ↵Felipe Corr??a da Silva Sanches2008-05-251-0/+156
cairo git master branch) will compile SVGFonts (experimental) support. * First code for SVGFonts rendering. Renders in a separate window because we still dont have pango integration. (bzr r5753)