[MacPorts] #69045: imagefontwidth and imagefontheight fail on valid GDFont
MacPorts
noreply at macports.org
Fri Jan 5 12:57:39 UTC 2024
#69045: imagefontwidth and imagefontheight fail on valid GDFont
-----------------------+----------------------
Reporter: jonaskohl | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Keywords: | Port: php83-gd
-----------------------+----------------------
When using `imagefontwidth($font);` with a font loaded using
`imageloadfont(...)`, the call fails with the following exception:
{{{
Uncaught TypeError: imagefontwidth(): Argument #1 ($font) must be of type
GdFont|int, GdFont given
}}}
This is not reproducible on non macOS systems, so it seems to be a problem
with this port.
I have attached a simple MVP that reproduces this problem (at least on my
Mac). Just run `sample.php` via `php-cli`.
--
Ticket URL: <https://trac.macports.org/ticket/69045>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list