gimp_text_fontname (> gimp_text_font): seg fault while calling with 'U+0428'
Environment/Versions
- GIMP version: 2.10.32
- Package: Fedora 37 x86_64 stock rpm package
- Operating System: Fedora 37 x86_64
Description of the bug
When creating a text layer with the U+0428 character of Arial Black font at a size > 794 pixels using a python script calling pdb.gimp_text_fontname(), a segmentation fault occurs. This seems independent of the image size, layer offset. Other glyphs in the same font do not cause a crash. This does not occur if character is inserted manually with the gui.
Reproduction
Is the bug reproducible? Yes
Reproduction steps:
- Use the script below (gimpbug.py)
- gimp -d --batch-interpreter python-fu-eval -b - <gimpbug.py
from gimpfu import *
font = 'Arial Black'
letter = unichr(0x428)
iw = 1000
ih = 1000
image = gimp.Image(iw, ih, RGB)
display = pdb.gimp_display_new(image)
glyphlayer = pdb.gimp_text_fontname(image, None, 0, 0, letter,
0, int(True), 795, PIXELS, font)
pdb.gimp_text_layer_set_color(glyphlayer, '#000000')
…
Expected result: layer xreation
Actual result: segmentation fault
Edited by Patrick Monnerat