Debian Bug report logs - #1023777
fontforge: Setting fontforge.font.bitmapSizes broken/impossible?

version graph

Package: src:fontforge; Maintainer for src:fontforge is Debian Fonts Task Force <[email protected]>;

Reported by: наб <[email protected]>

Date: Thu, 10 Nov 2022 00:51:02 UTC

Severity: normal

Tags: upstream

Found in version fontforge/1:20201107~dfsg-4

Forwarded to https://github.com/fontforge/fontforge/issues/5137

Full log


🔗 View this message in rfc822 format

X-Loop: [email protected]
Subject: Bug#1023777: fontforge: Setting fontforge.font.bitmapSizes broken/impossible?
Reply-To: наб <[email protected]>, [email protected]
Resent-From: наб <[email protected]>
Resent-To: [email protected]
Resent-CC: Debian Fonts Task Force <[email protected]>
X-Loop: [email protected]
Resent-Date: Thu, 10 Nov 2022 00:51:02 +0000
Resent-Message-ID: <[email protected]>
Resent-Sender: [email protected]
X-Debian-PR-Message: report 1023777
X-Debian-PR-Package: src:fontforge
X-Debian-PR-Keywords: 
X-Debian-PR-Source: fontforge
Received: via spool by [email protected] id=B.16680413631807339
          (code B); Thu, 10 Nov 2022 00:51:02 +0000
Received: (at submit) by bugs.debian.org; 10 Nov 2022 00:49:23 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
	(2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-4.3 required=4.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,FROM_SUSPICIOUS_NTLD,
	FROM_SUSPICIOUS_NTLD_FP,PDS_OTHER_BAD_TLD,PGPSIGNATURE,RDNS_NONE,
	SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no
	version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 54; hammy, 150; neutral, 135; spammy,
	0. spammytokens: hammytokens:0.000-+--bookworm, 0.000-+--sk:taint_o,
	0.000-+--sk:TAINT_O, 0.000-+--sk:taint_u, 0.000-+--sk:TAINT_U
Received: from [139.28.40.42] (port=36736 helo=tarta.nabijaczleweli.xyz)
	by buxtehude.debian.org with esmtp (Exim 4.94.2)
	(envelope-from <[email protected]>)
	id 1osvkw-007aA2-4R
	for [email protected]; Thu, 10 Nov 2022 00:49:23 +0000
Received: by tarta.nabijaczleweli.xyz (Postfix, from userid 1000)
	id ACB06B0A; Thu, 10 Nov 2022 01:49:15 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nabijaczleweli.xyz;
	s=202205; t=1668041355;
	bh=jenZLRrVVpJHcJbnC+Av0NjqIGLHwOuu1DdGkwyiwj8=;
	h=Date:From:To:Subject:From;
	b=f6fyCfQfTRchI5lewUiHraeCo9ycddgEa+ToxyFQ89D6ZgNIEtS8uiJfTIWs2uSOS
	 SxnGB63PFeLs0CLi7C+ZK6EJSN8nRSEfhUYRWUVHTuob3tHKuoCR0vRfBj7zKeUcve
	 dFnT0uZv9CtmT3dDTx6TmdyjJi40ZOZXRImVNLLWv8yka/3MK4TWJ+ATfjkUEywzCw
	 uFlVDfCydyB8P+T3brVLuhc/qQr39iklroT5Q6Y3K4wLW2uEH1di/U1P+WyzaEF/Xt
	 CVulBI8aWYzejFDF8Qzu/YzGZ9tLL/9v5jnhfGnlfa530OXa7OGccC/flGvoFlKedj
	 5Gzc6IF2Ys36g7WDHzKcC/L+l9gL9MFuxLrIm2ubzrH44gT97UKIRI85PF2PTDpm0a
	 fEZvA6NTZZin0JhbzxbVcpWhT97vBoFSb6HJoOe8cwj1QJ7C/z8KS12g0MhefW1bFu
	 zHXB4fEN772ybgC5Nl/pJssQeOwSQIg27EMiReiKfeOOqu2YYWipWeVxhztMThLy5V
	 XUFdnBPgJksL06Zx6WDvK52B2B1+P3/zQANudfpMax6cVCT732f86uu8K1WyM1x7WM
	 /Qmld13uD6zUfYr8QVxhUmyCm3Wok7bxDHqfIHqbuxXeCpwVlkhvDRBh7C5Jb6YPJe
	 3MxYWZsMcG2r7ibUq0GZJvwc=
Date: Thu, 10 Nov 2022 01:49:15 +0100
From: наб <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Message-ID: <[email protected]>
X-Reportbug-Version: 7.10.3+deb11u1
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
	protocol="application/pgp-signature"; boundary="ppw4jkjybo25maq4"
Content-Disposition: inline
User-Agent: NeoMutt/20220429
Delivered-To: [email protected]
[Message part 1 (text/plain, inline)]
Source: fontforge
Version: 1:20201107~dfsg-4
Severity: normal

Dear Maintainer,

Per spec (https://fontforge.org/docs/scripting/python/fontforge.html#fontforge.font.bitmapSizes):
  font.bitmapSizes
    A tuple with an entry for each bitmap strike attached to the
    font. Each strike is identified by pixelsize (if the strike is a
    grey scale font it will be indicated by (bitmap-depth<<16)|pixelsize.

    When setting this value pass in a tuple of the same format. Any
    existing strike not specified in the tuple will be removed. Any new
    sizes will be created (but not rasterized  use font.regenBitmaps()
    for that).

But I get this on bullseye (1:20201107~dfsg-4) and sid (1:20220308~dfsg-1):
-- >8 --
$ fontforge -
Copyright (c) 2000-2021. See AUTHORS for Contributors.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE.
 Version: 20201107
 Based on sources from 2021-01-15 15:55 UTC-ML-D-GDK3.
PythonUI_Init()
copyUIMethodsToBaseTable()
Failed to open hotkey definition file: /share/fontforge/hotkeys/default
>>> fontforge.open('Untitled1.sfdir').bitmapSizes
(16, 32, 64, 128)
>>> fontforge.font().bitmapSizes = (16, 32, 64, 128)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
SystemError: new style getargs format but argument is not a tuple
>>> fontforge.font().bitmapSizes = fontforge.open('Untitled1.sfdir').bitmapSizes
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
SystemError: new style getargs format but argument is not a tuple
-- >8 --
and
-- >8 --
$ fontforge -
Copyright (c) 2000-2022. See AUTHORS for Contributors.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE.
 Version: 20220308
 Based on sources from 2022-06-16 10:08 UTC-D.
>>> fontforge.font().bitmapSizes = (16, 32, 64, 128)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
SystemError: new style getargs format but argument is not a tuple
>>>
-- >8 --

This makes the (-nox) package useless.

Best,
наб

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: x32 (x86_64)
Foreign Architectures: amd64, i386

Kernel: Linux 6.0.0-2-amd64 (SMP w/2 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 11:25:44 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.