You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug:
The font-family set in the SVG file of a title template is ignored and always set to sans-serif (DejaVu Sans in my case) when initially created. It can be edited, but initially is always set to the default sans-serif font.
I have tested the issue using DejaVu Serif, C059, EB Garamond, and Liberation Serif fonts. They all revert to DejaVu Sans the same way.
Issue #5115 also mentions the font being changed, but has more issues relating to font rendering (colour, stroke, etc.) and the comments went on tangents that do not apply in this case. So I am filing this issue to focus on the font-family not being preserved in several cases outlined below.
Steps to reproduce the behaviour:
The steps below demonstrate that when you create a new title or edit it, the font always reverts to the default sans-serif except when you explicitly choose an alternate font. In other words, an alternate font must be specified every time the title is created or edited.
In Inkscape create a title template using something other than the default sans-serif font. Save it as ~/.openshot_qt/title_templates/font-test.svg.
In OpenShot create new project and create a title using the font-test template. Just click on your template and click Save, leaving all values as they are.
Place it on a track and observe that the font is shown as the default sans-serif rather than what was saved in the template.
You will see whatever your system's default sans-serif font is, in my case I see, font-family:'DejaVu Sans'; twice.
grep -oE "font-family:['a-zA-Z0-9 ]+" ~/.openshot_qt/title_templates/font-test.svg and you will see font-family is defined as what you set it to in Inkscape. In my case I see font-family:C059 twice.
Right-click on the title in Project Files -> Edit title -> Change Font -> set the font back to what was saved in Inkscape -> click Save.
Confirm that the Video Preview shows the chosen font.
Exception / Stacktrace:
A message that might point to the issue that I saw when running the AppImage from the terminal was this:
Warning (in usvg::parser::svgtree:288): Failed to parse font-style value: 'Roman'.
Everything else was just INFO messages.
Thank you for your efforts.
The text was updated successfully, but these errors were encountered:
Colorjet3
added
🐞 bug
A bug, error, or breakage of any kind
💡 enhancement
This issue describes an improvement, enhancement, or feature request for OpenShot
labels
Jul 8, 2024
Describe the bug:
The font-family set in the SVG file of a title template is ignored and always set to sans-serif (DejaVu Sans in my case) when initially created. It can be edited, but initially is always set to the default sans-serif font.
I have tested the issue using DejaVu Serif, C059, EB Garamond, and Liberation Serif fonts. They all revert to DejaVu Sans the same way.
Issue #5115 also mentions the font being changed, but has more issues relating to font rendering (colour, stroke, etc.) and the comments went on tangents that do not apply in this case. So I am filing this issue to focus on the font-family not being preserved in several cases outlined below.
Steps to reproduce the behaviour:
The steps below demonstrate that when you create a new title or edit it, the font always reverts to the default sans-serif except when you explicitly choose an alternate font. In other words, an alternate font must be specified every time the title is created or edited.
~/.openshot_qt/title_templates/font-test.svg
.font-test
template. Just click on your template and click Save, leaving all values as they are.grep -oE "font-family:['a-zA-Z0-9 ]+" ~/.openshot_qt/title/TitleFileName*.svg
font-family:'DejaVu Sans';
twice.grep -oE "font-family:['a-zA-Z0-9 ]+" ~/.openshot_qt/title_templates/font-test.svg
and you will see font-family is defined as what you set it to in Inkscape. In my case I seefont-family:C059
twice.grep -oE "font-family:['a-zA-Z0-9 ]+" ~/.openshot_qt/title/TitleFileName*.svg
Expected behaviour:
The font saved in the title template, as well as the font chosen, should remain set instead of reverting back to sans-serif.
System Details:
Log Files:
If you are experiencing a crash, please collect and attach logs of the problem.
(it does not crash, but log is attached anyway)
openshot-qt.log
Exception / Stacktrace:
A message that might point to the issue that I saw when running the AppImage from the terminal was this:
Warning (in usvg::parser::svgtree:288): Failed to parse font-style value: 'Roman'.
Everything else was just INFO messages.
Thank you for your efforts.
The text was updated successfully, but these errors were encountered: