Font in project directory

Bug #677370 reported by Codain
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Wishlist
Unassigned

Bug Description

I'm on a computer at work where I can't install fonts (in fact I can install them but as soon as I restart computer, new fonts are automatically deleted).

Moreover, I don't want to install lot of fonts because it slows the PC each time I want to choose a font, and because each project has its own fonts. Using a soft like Fontmatrix is not a better solution.

For those reasons, I don't want either to put fonts in the Inkscape/fonts directory.

I also want that if I send my project or move it on another computer, I don't have to reinstall fonts, simply move them with the project.

So here is my wichlist:
Could it be possible that Inkscape lists fonts that are in the project directory (or in a specified font/ directory in the project directory) ?

By "project" I means the SVG file.

Thanks!

Tags: fonts
su_v (suv-lp)
tags: added: fonts
Changed in inkscape:
importance: Undecided → Wishlist
Revision history for this message
jazzynico (jazzynico) wrote :

Hum, I'm almost sure I've already seen an extension that lists the fonts of an SVG file...

Revision history for this message
jazzynico (jazzynico) wrote :

Adding the fonts to the project is rather difficult (see Bug #386664 , "Gather Resources option for gathering fonts and images"). But listing fonts (in an extension window or a text file) should be easier.

Would the latter fit your needs?

Revision history for this message
su_v (suv-lp) wrote :

> (…) an extension that lists the fonts of an SVG file...

See "inkscape-replace-font"
<http://code.google.com/p/inkscape-replace-font>

The most current version is in Inkscape trunk:
Bug #171007 “Font Find and replace added to the Text dialog”:
<https://bugs.launchpad.net/inkscape/+bug/171007>

Revision history for this message
Codain (codain) wrote :

Thanks but I don't want to change fonts or to do anything. Open sources projects need to be user friendly, a plugin for such an important things means that from a computer to another, even from a user to another, the user experience will be different. I use Inkscape at work, not only for me, so we don't want to use plugins or other things that are not part of the main software or to change fonts.

I just want that if I work on a network, or if I send my project to another one, he simply have to open it and that's it. Fonts are moved with the project, like for images that are not embedded in the SVG file.

If it's not possible, I understand, but we will not use third parties.

Bug #386664 could be usefull to generate a "trustable" project (with all fonts and images), a first step of my wishlist. But he do not ask that if he opens the svg file, Inkscape uses fonts that are in the project directory before those installed. If I can gather fonts in the project directory, I can't say to Inkscape to use them.

Revision history for this message
jazzynico (jazzynico) wrote :

@Romain. I don't suggest that you use a third party extension, but try to improve an existing one (File>Save as>Compressed Inkscape SVG with media) by adding a list of all the fonts used in the document to a compressed file (with the SVG file and all the bitmap attachments), as explained in Bug #386664.
But unfortunately, there are differences on how the font are handled by different operating systems, and I don't know how to add them so that they can be easily reusable on another computer. Without even mentioning copyright issues...

Revision history for this message
Codain (codain) wrote :

Okay.

By "list" I means not only make a list but find fonts that are in the project directory and add them in the font list widget.

Using "File>Save as>Compressed Inkscape SVG with media" could be a begining of solution, I did not know this feature.

Infortunately, I've tried with one of my project, it makes an empty zip :o( . I've tried with another one which is located here:
http://upload.wikimedia.org/wikipedia/commons/0/00/Avion_silhouette.svg. Same problem.

I'm going to report a new bug.

But if this tool is able to find fonts used in the project and to add them in the zip, my wishlist would be halfdone! next step would be to detect them when reopening the svg file on another computer.

Revision history for this message
Codain (codain) wrote :

I've submited Bug #681256, I've find other bugs reports but they said they refers to Inkscape 0.46 and was set to "Fix released".

Revision history for this message
su_v (suv-lp) wrote :

Related, but apparently very different feature request:
Bug #916893 “use fonts that not are installed in SO like blender 3D text functions”
<https://bugs.launchpad.net/inkscape/+bug/916893>

Revision history for this message
su_v (suv-lp) wrote :

Related article by Behdad Esfahbod:
* “McEs, A Hacker Life: How to use custom application fonts with Pango:”
  http://mces.blogspot.ca/2015/05/how-to-use-custom-application-fonts.html

Source:
https://mail.gnome.org/archives/gtk-i18n-list/2015-May/msg00000.html

su_v (suv-lp)
Changed in inkscape:
status: New → Confirmed
Revision history for this message
Patrick Storz (ede123) wrote :

I added functionality to load fonts from additional directories in
https://gitlab.com/inkscape/inkscape/compare/683029f31f0f1814c21ca65f7f113ac12b6242fb...2dc0f89864fded681d8ece1d077d6ff5c77bbe97

See also corresponding merge request:
https://gitlab.com/inkscape/inkscape/merge_requests/102

Inkscape can now load fonts that are not installed on the system. By default Inkscape will load additional fonts from Inkscape's share folder (/share/inkscape/fonts) and the user's configuration folder (~/.config/inkscape/fonts). Custom folders can be set in preferences (see Tools → Text → Font directories).

Inkscape does *not* load fonts from the folder of the current SVG file yet for the reasons described in the following mailing list thread on inkscape-devel:
https://sourceforge.net/p/inkscape/mailman/inkscape-devel/thread/3acd2560-8556-c333-b5a7-9271ab136abb%40gmx.de/

Also it seems people seem to prefer @font-face support for this over the possible approaches suggested.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.