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

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Debian Fonts Task Force <[email protected]>:
Bug#1023777; Package src:fontforge. (Thu, 10 Nov 2022 00:51:04 GMT) (full text, mbox, link).


Acknowledgement sent to наб <[email protected]>:
New Bug report received and forwarded. Copy sent to Debian Fonts Task Force <[email protected]>. (Thu, 10 Nov 2022 00:51:04 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: наб <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: fontforge: Setting fontforge.font.bitmapSizes broken/impossible?
Date: Thu, 10 Nov 2022 01:49:15 +0100
[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)]

Set Bug forwarded-to-address to 'https://github.com/fontforge/fontforge/issues/5137'. Request was from наб <[email protected]> to [email protected]. (Thu, 10 Nov 2022 01:27:03 GMT) (full text, mbox, link).


Added tag(s) upstream. Request was from наб <[email protected]> to [email protected]. (Thu, 10 Nov 2022 01:27:03 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 09:22:09 2025; Machine Name: buxtehude

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.