Scribus Forums

Scribus => Beginner Talk => Topic started by: tuxmain on July 31, 2019, 05:47:29 PM

Title: Include font from relative path
Post by: tuxmain on July 31, 2019, 05:47:29 PM
Hello,

I am creating a flyer with Scribus 1.5.4 (Linux). Since I understood that images are included by relative paths, I put the sla file in a folder containing all the images (so it can be edited on other computers).

Now I would like to translate the flyer, creating one sla file per language. It would be stupid to embed the same fonts in each file, so I wonder if it is possible to include fonts from a relative path (so I can create a 'fonts' folder).

Thank you.  :)
Title: Re: Include font from relative path
Post by: a.l.e on July 31, 2019, 05:51:58 PM
yes, if you close all your documents, in file > preferneces > fonts, you can set additional paths where you have your fonts.

... on the other side, i didn't know that scribus would automatically load fonts from the document's directory (ok, it should do so for idml files...)
Title: Re: Include font from relative path
Post by: tuxmain on August 03, 2019, 10:07:10 AM
I saw that option but it looks like it is specific to the local installation.

I'm looking for the equivalent of this CSS code, included in the document but independent of the computer:
font-family: url(fonts/MyFont.otf);

I will test the additional paths.
Title: Re: Include font from relative path
Post by: a.l.e on August 03, 2019, 10:34:07 AM
as said, the way to do it, is to add the fonts to a central directory and activate that directory in the scribus preferences.

but, as far as i know, scribus might be able to recognize fonts that are in the same directory as the .sla document.
or at least it might be supposed to do so.
but you have to test that.
Title: Re: Include font from relative path
Post by: tuxmain on August 03, 2019, 08:14:08 PM
It works! Fonts in the project file's folder are automatically detected when opening the document. I didn't need the "additional paths".

Thank you!
Title: Re: Include font from relative path
Post by: a.l.e on August 03, 2019, 09:10:52 PM
Thanks for confirming it!
Title: Re: Include font from relative path
Post by: Nermander on August 04, 2019, 10:28:05 AM
That then makes "Collect for output" an even more better solution (since it can collect all images and used fonts into one folder).