https://bugzilla.redhat.com/show_bug.cgi?id=1382428
Bug ID: 1382428 Summary: International font function broken in packaged blender 2.7 Product: Fedora Version: 24 Component: blender Assignee: luya_tfz@thefinalzone.net Reporter: pswo10680@gmail.com QA Contact: extras-qa@fedoraproject.org CC: design-devel@lists.fedoraproject.org, hobbes1069@gmail.com, jochen@herr-schmitt.de, kwizart@gmail.com, luya_tfz@thefinalzone.net, promac@gmail.com
Created attachment 1207982 --> https://bugzilla.redhat.com/attachment.cgi?id=1207982&action=edit Packaged blender cannot support international feature well
Description of problem: Blender supports internationalization since 2.6. I have downloaded official blender package myself, and the internationalization works well. I can change to "Traditional Chinese" language via checking "International Fonts" option in "File > User Preferences > System" dialogue, and then check "Interface" and "Tooltips" for my native language.
However, the version distributed by Fedora cannot take this advantage of blender.
If you open a terminal to launch blender, it will print out the message below:BLF_get_unifont: 'fonts' data path not found for international font, continuing BLF_get_unifont_mono: 'fonts' data path not found for international monospace font, continuing
Version-Release number of selected component (if applicable): 2.77a
How reproducible: Always
Steps to Reproduce: 1. launch blender 2. check "International Font" option in System tab of File > User Preferences dialogue 3. select Traditional Chinese as the language 4. check "Interface" and "Tooltips" to translate them into localized ones
Actual results: You see many characters in supported language list are displayed as squares. And nothing happened after you applied the localization changes.
Expected results: The internationalization work of blender should work fine out of box as the official one.
Additional info: This is a regression because it occurred before and fixed once. See https://bugzilla.redhat.com/show_bug.cgi?id=867285
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
Cheng-Chia Tseng pswo10680@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |i18n
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
--- Comment #1 from Cheng-Chia Tseng pswo10680@gmail.com --- related old closed bug: See https://bugzilla.redhat.com/show_bug.cgi?id=1002197
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
Luya Tshimbalanga luya@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |luya@fedoraproject.org Assignee|luya_tfz@thefinalzone.net |luya@fedoraproject.org
--- Comment #2 from Luya Tshimbalanga luya@fedoraproject.org --- Hello Cheng-Chia, Thank you for reporting the issue. I was able to fully reproduce it and noticed the same problem when manually selecting these blender fonts. The fix is on the way and please test them once the new blender version comes.
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
--- Comment #3 from Cheng-Chia Tseng pswo10680@gmail.com --- No problem. Thank you! ;)
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
--- Comment #4 from Luya Tshimbalanga luya@fedoraproject.org --- Could you test this build please? http://koji.fedoraproject.org/koji/taskinfo?taskID=16120340
Looking at the old 2.68 version, the file needed to fix the issue blf_lang.c is gone on 2.7.
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
Luya Tshimbalanga luya@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pswo10680@gmail.com Flags| |needinfo?(pswo10680@gmail.c | |om)
--- Comment #5 from Luya Tshimbalanga luya@fedoraproject.org --- Please test http://koji.fedoraproject.org/koji/taskinfo?taskID=16120340
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
--- Comment #6 from Cheng-Chia Tseng pswo10680@gmail.com --- It's built with Rawhide. Sorry that I don't know how to test it. I'm using f25 Beta now.
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
--- Comment #7 from Luya Tshimbalanga luya@fedoraproject.org --- (In reply to Cheng-Chia Tseng from comment #6)
It's built with Rawhide. Sorry that I don't know how to test it. I'm using f25 Beta now.
Simply install as usual either via Software or terminal. Here is scratch build version made for Fedora 25: http://koji.fedoraproject.org/koji/taskinfo?taskID=16125883
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
Cheng-Chia Tseng pswo10680@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(pswo10680@gmail.c | |om) |
--- Comment #8 from Cheng-Chia Tseng pswo10680@gmail.com --- Those packages cannot be installed via Software. The dependency cannot be met in f25 (libOpenImage) using the rpm command. The f25 packages were successfully upgraded with rpm command.
The test failed. Blender still showing squares (tofu) as characters.
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
--- Comment #9 from Cheng-Chia Tseng pswo10680@gmail.com --- Created attachment 1212565 --> https://bugzilla.redhat.com/attachment.cgi?id=1212565&action=edit tofu in blender
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
Cheng-Chia Tseng pswo10680@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment|tofu in blender |tofu in blender 2.78-3 #1212565| | description| |
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
--- Comment #10 from Cheng-Chia Tseng pswo10680@gmail.com --- Maybe again the font packaging issue (blender uses a forked "Droid Sans" font but not changing the font name)?
Please see the discussion here https://bugzilla.redhat.com/show_bug.cgi?id=1002197#c22
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
--- Comment #11 from Cheng-Chia Tseng pswo10680@gmail.com --- I found blender cannot load /usr/share/fonts/blender/bmonofont-i18n.ttf.gz or /usr/share/fonts/blender/droidsans.ttf.gz .
But it can load ttf files. I successfully apply some ttf fonts manually, but failed with those archived fonts.
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
Luya Tshimbalanga luya@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(pswo10680@gmail.c | |om)
--- Comment #12 from Luya Tshimbalanga luya@fedoraproject.org --- (In reply to Cheng-Chia Tseng from comment #11)
I found blender cannot load /usr/share/fonts/blender/bmonofont-i18n.ttf.gz or /usr/share/fonts/blender/droidsans.ttf.gz .
But it can load ttf files. I successfully apply some ttf fonts manually, but failed with those archived fonts.
Could you try this build: http://koji.fedoraproject.org/koji/taskinfo?taskID=16142915 ?
Note that fonts-blender is renamed blender-fonts in adherence to the packaging guideline and it will be visible on Gnome Software. In addition, the ttf inside are no longer compressed.
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
Cheng-Chia Tseng pswo10680@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(pswo10680@gmail.c | |om) |
--- Comment #13 from Cheng-Chia Tseng pswo10680@gmail.com --- It failed again.
blender keeps complaining: BLF_get_unifont: 'fonts' data path not found for international font, continuing BLF_get_unifont_mono: 'fonts' data path not found for international monospace font, continuing
I think blender has a default fixed font data path, and it just cannot find it where it should be.
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
--- Comment #14 from Cheng-Chia Tseng pswo10680@gmail.com --- I mean that the official release of blender did work well on this.
Maybe the sub-packaging process makes blender not finding the right path as it expects.
So uncompressing those fonts might not be needed if we put the fonts data back to the place as the original file structure.
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
Luya Tshimbalanga luya@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(pswo10680@gmail.c | |om)
--- Comment #15 from Luya Tshimbalanga luya@fedoraproject.org --- (In reply to Cheng-Chia Tseng from comment #13)
It failed again.
blender keeps complaining: BLF_get_unifont: 'fonts' data path not found for international font, continuing BLF_get_unifont_mono: 'fonts' data path not found for international monospace font, continuing
I think blender has a default fixed font data path, and it just cannot find it where it should be.
The only difference is the official Blender is installed on the home directory while the packaged version for Fedora is on /usr/share directory. Despite applying the patch derived from the previous release, Blender still complains about the font path even though it is correctly set on "usr/share/fonts".
Lets just use the effective workaround by uncompressing the Blender fonts until a better solution is found on the future fix.
Reinstall Blender and its fonts http://koji.fedoraproject.org/koji/taskinfo?taskID=16175398
Only the mono fonts path may fail for some reason but the translation for the interface should work.
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
Cheng-Chia Tseng pswo10680@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(pswo10680@gmail.c | |om) |
--- Comment #16 from Cheng-Chia Tseng pswo10680@gmail.com --- I finally figured it out.
Blender only picks the compressed font archives in its own data structure, that means you must place those font archives into /usr/share/blender/2.78/datafiles/fonts directory, and everything works well.
Trying to separate those font archives and place them at /usr/share/fonts makes blender cannot use those fonts made for international usage.
Furthermore, those fonts are derived works of droid sans (which means it use the same name as droid sans, but contains more glyphs from other international fonts besides western fonts). So users will receive unpredictable font display because the repeating font name will make fontconfig confuse.
So the new packages you built does not improve the issue. Blender keeps complaining not finding those font archives in the place it expects, so those Chinese translations are STILL squares (tofus) even with your latest build. Even worse the blender-fonts package break the default font selection for Chinese environment.
Before installation of the latest blender-fonts package you built, the default CJK font of Chinese is SourceHanSansTW-Regular.otf: "思源黑體 TW" "Regular". But after the installation, the default font changed to droidsans.ttf: "DejaVu Sans" "Book" (which blender provides). That introduces an regression. (you can use 'fc-match -s sans-serif' to check this in zh_TW locale)
So what I suggest is not to uncompressed those font archives and see them as a part of blender because they are not designed to be used globally, but only as a fallback internatinoal font to display those translations internally in blender itself. If we must separate the font packaging, just intall them in /usr/share/blender/2.78/datafiles/fonts directory, then everything will works as fine as it should be.
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
Luya Tshimbalanga luya@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(pswo10680@gmail.c | |om)
--- Comment #17 from Luya Tshimbalanga luya@fedoraproject.org --- (In reply to Cheng-Chia Tseng from comment #16)
I finally figured it out.
Blender only picks the compressed font archives in its own data structure, that means you must place those font archives into /usr/share/blender/2.78/datafiles/fonts directory, and everything works well.
Trying to separate those font archives and place them at /usr/share/fonts makes blender cannot use those fonts made for international usage.
Thank you for explaining how Blender looks to the archived fonts. Fedora Guideline rules that no fonts should be outside the path */user/share/fonts/*. However, symlink that path may do the trick. I modified blender-fonts for that purpose and left these fonts uncompressed.
Please reinstall blender-fonts from this build: http://koji.fedoraproject.org/koji/taskinfo?taskID=16189344
And let know if that fix the issue.
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
--- Comment #18 from Cheng-Chia Tseng pswo10680@gmail.com --- hi, the build failed. :S
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
--- Comment #19 from Luya Tshimbalanga luya@fedoraproject.org --- (In reply to Cheng-Chia Tseng from comment #18)
hi, the build failed. :S
It turned out symlink failed. I applied your suggestion and you can try koji.fedoraproject.org/koji/taskinfo?taskID=16192047
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
Cheng-Chia Tseng pswo10680@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(pswo10680@gmail.c | |om) |
--- Comment #20 from Cheng-Chia Tseng pswo10680@gmail.com --- The international font function works well in this build! The problem is solved.
Thank you for your work! :)
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
--- Comment #21 from Luya Tshimbalanga luya@fedoraproject.org --- You are very welcome. I also thank you for testing the package and providing suggestion. Please add karma once the update is available.
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |ON_QA
--- Comment #22 from Fedora Update System updates@fedoraproject.org --- blender-2.78-3.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-22219b9310
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
--- Comment #23 from Fedora Update System updates@fedoraproject.org --- blender-2.78-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-458d0442e7
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Fixed In Version| |blender-2.78-3.fc25 Resolution|--- |ERRATA Last Closed| |2016-10-27 20:43:14
--- Comment #24 from Fedora Update System updates@fedoraproject.org --- blender-2.78-3.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |ON_QA Resolution|ERRATA |--- Keywords| |Reopened
--- Comment #25 from Fedora Update System updates@fedoraproject.org --- LuxRender-1.6-3.fc24, blender-2.78a-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-20f78cd21b
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Fixed In Version|blender-2.78-3.fc25 |blender-2.78-3.fc25 | |blender-2.78a-1.fc24 Resolution|--- |ERRATA Last Closed|2016-10-27 20:43:14 |2016-11-07 18:25:26
--- Comment #26 from Fedora Update System updates@fedoraproject.org --- LuxRender-1.6-3.fc24, blender-2.78a-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1382428
Cheng-Chia Tseng pswo10680@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugzilla.redhat.com | |/show_bug.cgi?id=1429196
design-devel@lists.fedoraproject.org