Switch to full style
Post all Gimp scripts and script writing questions here
Post a reply

Update to Custom Font Layers from Fonts for Gimp 2.10 to Version 0.06

Tue Aug 13, 2019 9:11 am

Also posted on GimpLearn:

Custom_Font_Layers_From_Fonts_V0-06.zip
(4.39 KiB) Downloaded 200 times


I have added options to convert at least some French/German/Italian/Spanish characters to Custom Font layers.
Obviously the characters must be present in the original font.
I have also taken the opportunity to prevent empty layers from being added as character layers.

Language_Demo.jpg
Language_Demo.jpg (321.93 KiB) Viewed 4502 times

Re: Update to Custom Font Layers from Fonts for Gimp 2.10 to Version 0

Wed Aug 14, 2019 3:01 am

Well done.

I have only a small suggestion:
When using national characters for "Create only the layers below" gives an error.
To consider:
- adding one line of code:
Code:
restricted_case = restricted_case.decode("utf-8")

- replacement of these lines:
Code:
    max_width = 0
    max_height = 0

on:
Code:
    max_width = 1
    max_height = 1

For me, after the changes it seems to work well.

Re: Update to Custom Font Layers from Fonts for Gimp 2.10 to Version 0

Wed Aug 14, 2019 12:49 pm

Thank goodness for people like you MareroQ.

I didn't think anyone actually used the restricted set of characters. But yes it would certainly throw up errors if you tried to use non-English characters in that option.

Bit busy at the moment but I shall certainly re-code that particular one.

Thanks again!
Post a reply