#1023777 fontforge: Setting fontforge.font.bitmapSizes broken/impossible?

Package:
src:fontforge
Source:
src:fontforge
Submitter:
наб
Date:
2026-08-09 21:35:02 UTC
Severity:
normal
Tags:
#1023777#5
Date:
2022-11-10 00:49:15 UTC
From:
To:
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
(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
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.
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,
наб

#1023777#16
Date:
2026-08-09 21:34:00 UTC
From:
To: