Bug#1033833: unknown-horizons: Fails to start Couldn't open content/fonts/Unifont.ttf
Control: reassign -1 unknown-horizons Control: found -1 2019.1-5 Hi Hideki Yamane, On Mon, 3 Apr 2023 09:16:14 +0900 Hideki Yamane wrote: > On Sun, 2 Apr 2023 18:33:34 +0200 > Tobias Frost wrote: > > it seems so that the fonts package unifont dropped unifont.ttf in > > 1:15.0.01-1: > > Yes, and upstream plans to drop ttf. So I do not want to revert > this change in Debian package. > > > Unifont 15.0.01 installs OpenType fonts alongside the TrueType fonts > > that are installed in Unifont 14.0.x and previous releases. > > The current plan is for Unifont 16.0.01 to no longer install TrueType > > fonts that have OpenType equivalents. This will allow a period of > > approximately one year for Unifont users to switch from TrueType to > > OpenType files. > thanks for your feedback and the hint to look into otf. It seems that the fife engine of unknown-horizons can read otf fonts as well, so redirecting the symlink to that version works \o/ So I'm reassigning this bug back to unknown horizons and will fix it there. Again thanks for the hint! PS: Long description of the fonts-unifont package is still mentioning truetype fonts… Maybe that needs s/truetype/opentype/ ? -- tobi signature.asc Description: PGP signature
Bug#1033833: unknown-horizons: Fails to start Couldn't open content/fonts/Unifont.ttf
On Sun, 2 Apr 2023 18:33:34 +0200 Tobias Frost wrote: > it seems so that the fonts package unifont dropped unifont.ttf in > 1:15.0.01-1: Yes, and upstream plans to drop ttf. So I do not want to revert this change in Debian package. > Unifont 15.0.01 installs OpenType fonts alongside the TrueType fonts > that are installed in Unifont 14.0.x and previous releases. > The current plan is for Unifont 16.0.01 to no longer install TrueType > fonts that have OpenType equivalents. This will allow a period of > approximately one year for Unifont users to switch from TrueType to > OpenType files. -- Hideki Yamane
Bug#1033833: unknown-horizons: Fails to start Couldn't open content/fonts/Unifont.ttf
Control: reassign -1 src:unifont Control: retitle -1 src:unifont: Dropping of unifont.ttf breaks unknown-horizons Control: found -1 1:15.0.01-1 Control: affects -1 unknown-horizons Hi Hans Joachim, thanks for the report! it seems so that the fonts package unifont dropped unifont.ttf in 1:15.0.01-1: https://salsa.debian.org/fonts-team/unifont/-/commit/94b9698e3809316cd0e942f24f5ecbd517424c98 https://salsa.debian.org/fonts-team/unifont/-/commit/ac9a662b71d20f54d82c666502192302a21aa13e and so broke this package. I'll reassign the bug to src:unifont and ask them to please revert the change. -- tobi On Sun, Apr 02, 2023 at 03:16:47PM +0200, Hans Joachim Desserud wrote: > Package: unknown-horizons > Version: 2019.1-5 > Severity: grave > > Dear Maintainer, > > When attempting to run uknown-horizons it fails with the following error > message: > $ unknown-horizons > Discovered old settings file, auto-upgrading: 1 -> 38 > Traceback (most recent call last): > File "/usr/games/unknown-horizons", line 381, in > main() > File "/usr/games/unknown-horizons", line 122, in main > ret = horizons.main.start(options) > > File "/usr/lib/python3/dist-packages/horizons/main.py", line 171, in start > horizons.globals.fife.init() > File "/usr/lib/python3/dist-packages/horizons/engine/engine.py", line 181, > in init > self._setting.apply() > File "/usr/lib/python3/dist-packages/horizons/engine/settings.py", line > 91, in apply > change_language(language) > File "/usr/lib/python3/dist-packages/horizons/i18n/__init__.py", line 163, > in change_language > horizons.globals.fife.pychan.loadFonts(fontdef) > File "/usr/lib/python3/dist-packages/fife/extensions/pychan/fonts.py", > line 98, in loadFonts > for font in Font.loadFromFile(filename): > ^^^ > File "/usr/lib/python3/dist-packages/fife/extensions/pychan/fonts.py", > line 82, in loadFromFile > fonts.append(Font(font, lambda key, default=None: fontXMLFile.get(font, > key, default))) > ^ > File "/usr/lib/python3/dist-packages/fife/extensions/pychan/fonts.py", > line 52, in __init__ > self.font = get_manager().createFont(self.source, self.size) > > File "/usr/lib/python3/dist-packages/fife/extensions/pychan/internal.py", > line 176, in createFont > return self.hook.create_font(path,size,glyphs) >^^^ > fife.fife.CannotOpenFile: _[CannotOpenFile]_ , File couldn't be opened :: > content/fonts/Unifont.ttf (Couldn't open content/fonts/Unifont.ttf) > > The root problem is a missing font or font format. I tried a simple rebuild > of the package, but it had no effect. Looks like the font path is part of > the source code, so might be more font references with similar issues. > > Also reported in Ubuntu as > https://bugs.launchpad.net/ubuntu/+source/unknown-horizons/+bug/2011358 > > > -- System Information: > Debian Release: 12.0 > APT prefers unstable > APT policy: (500, 'unstable') > Architecture: amd64 (x86_64) > > Kernel: Linux 6.1.0-7-amd64 (SMP w/3 CPU threads; PREEMPT) > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), > LANGUAGE=en_US:en > Shell: /bin/sh linked to /usr/bin/dash > Init: systemd (via /run/systemd/system) > LSM: AppArmor: enabled > > Versions of packages unknown-horizons depends on: > ii fonts-unifont 1:15.0.01-2 > ii python3 3.11.2-1 > ii python3-enet0.0~vcs.2022.12.26.git-0.2+b1 > ii python3-fife0.4.2-5+b1 > ii python3-future 0.18.2-6 > ii python3-yaml6.0-3+b2 > > unknown-horizons recommends no packages. > > unknown-horizons suggests no packages. > > -- no debconf information > > -- > mvh / best regards > Hans Joachim Desserud > http://desserud.org > signature.asc Description: PGP signature
Bug#1033833: unknown-horizons: Fails to start Couldn't open content/fonts/Unifont.ttf
Package: unknown-horizons Version: 2019.1-5 Severity: grave Dear Maintainer, When attempting to run uknown-horizons it fails with the following error message: $ unknown-horizons Discovered old settings file, auto-upgrading: 1 -> 38 Traceback (most recent call last): File "/usr/games/unknown-horizons", line 381, in main() File "/usr/games/unknown-horizons", line 122, in main ret = horizons.main.start(options) File "/usr/lib/python3/dist-packages/horizons/main.py", line 171, in start horizons.globals.fife.init() File "/usr/lib/python3/dist-packages/horizons/engine/engine.py", line 181, in init self._setting.apply() File "/usr/lib/python3/dist-packages/horizons/engine/settings.py", line 91, in apply change_language(language) File "/usr/lib/python3/dist-packages/horizons/i18n/__init__.py", line 163, in change_language horizons.globals.fife.pychan.loadFonts(fontdef) File "/usr/lib/python3/dist-packages/fife/extensions/pychan/fonts.py", line 98, in loadFonts for font in Font.loadFromFile(filename): ^^^ File "/usr/lib/python3/dist-packages/fife/extensions/pychan/fonts.py", line 82, in loadFromFile fonts.append(Font(font, lambda key, default=None: fontXMLFile.get(font, key, default))) ^ File "/usr/lib/python3/dist-packages/fife/extensions/pychan/fonts.py", line 52, in __init__ self.font = get_manager().createFont(self.source, self.size) File "/usr/lib/python3/dist-packages/fife/extensions/pychan/internal.py", line 176, in createFont return self.hook.create_font(path,size,glyphs) ^^^ fife.fife.CannotOpenFile: _[CannotOpenFile]_ , File couldn't be opened :: content/fonts/Unifont.ttf (Couldn't open content/fonts/Unifont.ttf) The root problem is a missing font or font format. I tried a simple rebuild of the package, but it had no effect. Looks like the font path is part of the source code, so might be more font references with similar issues. Also reported in Ubuntu as https://bugs.launchpad.net/ubuntu/+source/unknown-horizons/+bug/2011358 -- System Information: Debian Release: 12.0 APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 6.1.0-7-amd64 (SMP w/3 CPU threads; PREEMPT) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages unknown-horizons depends on: ii fonts-unifont 1:15.0.01-2 ii python3 3.11.2-1 ii python3-enet0.0~vcs.2022.12.26.git-0.2+b1 ii python3-fife0.4.2-5+b1 ii python3-future 0.18.2-6 ii python3-yaml6.0-3+b2 unknown-horizons recommends no packages. unknown-horizons suggests no packages. -- no debconf information -- mvh / best regards Hans Joachim Desserud http://desserud.org