Feature #3254 Embed font into FCSTD file for better model exchange between different systems
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
Feature #3254 Embed font into FCSTD file for better model exchange between different systems
issue #3254 Wrong paths to fonts occur when you exchange models between different systems. An 'Embed' option would be useful
Original thread: https://forum.freecadweb.org/viewtopic. ... 05#p198775
Discussion thread dedicated for this feature. Please contribute
Original thread: https://forum.freecadweb.org/viewtopic. ... 05#p198775
Discussion thread dedicated for this feature. Please contribute
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: Feature #3254 Embed font into FCSTD file for better model exchange between different systems
I would appreciate the option. The linked discussion is about a certain workbench, but it occurs in core FreeCAD as well if using ShapeString.
For copyright reasons it is necessary to have the option to not include the fonts.
For copyright reasons it is necessary to have the option to not include the fonts.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
- wandererfan
- Veteran
- Posts: 6309
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: Feature #3254 Embed font into FCSTD file for better model exchange between different systems
Font files can be quite large. 250kb and up. Probably bigger than the rest of the fcstd combined.
Maybe a function to remap paths when fonts aren't found?
Maybe a function to remap paths when fonts aren't found?
Re: Feature #3254 Embed font into FCSTD file for better model exchange between different systems
Arial.ttf is 700kB, that is a lot!
Good idea, I guess it's a common workflow (at least outside the forum) that a FreeCAD file is used only on a very limited number of systems.
Maybe a function to remap paths when fonts aren't found?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
- DeepSOIC
- Veteran
- Posts: 7896
- Joined: Fri Aug 29, 2014 12:45 am
- Location: used to be Saint-Petersburg, Russia
Re: Feature #3254 Embed font into FCSTD file for better model exchange between different systems
Lattice's ShapeString supports relative font path. It is searched for, among other places, in project directory. So even though it doesn't embed the font into FCStd, it is easy to bundle. Does Draft offer the same - I don't know actually...
Re: Feature #3254 Embed font into FCSTD file for better model exchange between different systems
A relative path can be entered in the properties and is respected. It is not possible to select a relative path when using the file selection box.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Feature #3254 Embed font into FCSTD file for better model exchange between different systems
Is that really a lot anymore? I mean, sure, if you're running FreeCAD from hand made core rope memory but this is 2018 and my refrigerator uses more than that!wandererfan wrote: ↑Fri Jun 29, 2018 1:46 pm Font files can be quite large. 250kb and up. Probably bigger than the rest of the fcstd combined.
Maybe a function to remap paths when fonts aren't found?
I'd suggest an option to embed the font in a given document. That way the user can decide if increasing file size is worth the reward.
I work in a very technical field and I can say from personal experience that these little things can be very important. It can be the difference between opening a file from a colleague and moving on or spending half of your day reformatting everything because the font is wrong. Heck, I'd gladly triple my Simulink model file sizes if that meant different versions would actually place nice together!
Re: Feature #3254 Embed font into FCSTD file for better model exchange between different systems
I think this has the potential for being very problematic, licensing wise. Fonts provided on Windows and macOS are not open source, an end user most certainly does not have the right to distribute them.
Adobe products like InDesign have the option to bundle fonts with a project, it's normal because this is for the publishing industry, it's a very small user base - and they pay for their fonts. Here we're talking about a wide variety of users who aren't aware of these licensing issues.
This definitely should not be enabled by default. And it would be preferable I think to offer font substitution, at least as a fallback.
Adobe products like InDesign have the option to bundle fonts with a project, it's normal because this is for the publishing industry, it's a very small user base - and they pay for their fonts. Here we're talking about a wide variety of users who aren't aware of these licensing issues.
This definitely should not be enabled by default. And it would be preferable I think to offer font substitution, at least as a fallback.
Do you mean to convert a ShapeString into a "dumb" set of curves, breaking the link to the font? Inkscape can do that. (On the other hand, this is already possible by using Draft Downgrade)wandererfan wrote: ↑Fri Jun 29, 2018 1:46 pm Maybe a function to remap paths when fonts aren't found?
- DeepSOIC
- Veteran
- Posts: 7896
- Joined: Fri Aug 29, 2014 12:45 am
- Location: used to be Saint-Petersburg, Russia
Re: Feature #3254 Embed font into FCSTD file for better model exchange between different systems
That's quite an interesting problem. I can embed fonts into pdfs and such, and freely distribute the pdf. What's the problem here?
AFAIK Microsoft does allow embedding most fonts into a file.
https://docs.microsoft.com/en-us/typogr ... soft-fonts
Re: Feature #3254 Embed font into FCSTD file for better model exchange between different systems
I find that FAQ confusing. This is what I'm talking about:
Yet embedding is allowed.Microsoft's Font redistribution FAQ wrote:The fonts are governed by the same restrictions as the products they are supplied with. You are not allowed to copy, redistribute or reverse engineer the font files.
What's the difference between redistributing and embedding font files???