freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Type error in ttfautohint


From: Mike Sapsard
Subject: Type error in ttfautohint
Date: Thu, 26 Jan 2023 13:53:59 +0000

Using Pilcrow in Linux Mint 21.1 with Python 3.10.6
ttfautohint home page: <https://www.freetype.org/ttfautohint>
 File "/home/mike/pilcrow-main/DefineSources.py", line 121, in initializePage
    self.splitter.setSizes([width * 2/3, width * 1/3])
TypeError: index 0 has type 'float' but 'int' is expected

Fixed by adding int() typecasts as below:
self.splitter.setSizes([int(width * 2/3), int(width * 1/3)])

Regards Mike Sapsard

reply via email to

[Prev in Thread] Current Thread [Next in Thread]