Gimp-Forum.net
Font not found - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: Font not found (/Thread-Font-not-found)

Pages: 1 2


Font not found - Balbo193 - 01-12-2021

Hello everybody,
i have an old .xcf file with some text using a font which is not currently installed on my OS, so as soon as i try to correct the text, the font changes and i can't go back to the old font in any way. Fact is that the old one is correctly shown in the file as i open it, but i can't remember or find in any way its name. Is there any way to recover it in the file informations or anywhere else?


RE: Font not found - rich2005 - 01-12-2021

Go here: http://sourceforge.net/projects/gimp-tools/files/scripts/
Download the text-info-0.1.py plugin (dated 2014-08-26) 

In use: Open the .xcf file. Do not use the text tool. Right click on text layer, bottom of the menu click on show text information.

[attachment=5467]


RE: Font not found - Balbo193 - 01-12-2021

(01-12-2021, 03:06 PM)rich2005 Wrote: Go here: http://sourceforge.net/projects/gimp-tools/files/scripts/
Download the text-info-0.1.py plugin (dated 2014-08-26) 

In use: Open the .xcf file. Do not use the text tool. Right click on text layer, bottom of the menu click on show text information.
Thank you very much for your help.
Unluckily it only shows the font is named SANS which is not helpful in any way... i guess it's lost forever.


RE: Font not found - Krikor - 01-12-2021

I don't know what that font would be, but it seems to me to be from the Broadway font family.


RE: Font not found - rich2005 - 01-13-2021

Quote: ...Unluckily it only shows the font is named SANS which is not helpful in any way... i guess it's lost forever..

Export as a png or jpeg. Cut out some representitive characters, clean up if possible and try one of the font identification sites.

this one for example: https://www.whatfontis.com/


RE: Font not found - nelo - 01-13-2021

Try to open the .xcf file with an editor that can handle binaries like Notepad++(runs via wine here) or some hex editor and search for "font"
you might find something like this:

(font "Arial")
(font-size 15.000000)
(font-size-unit pixels)
(antialias yes)
(language "de-de")
(base-direction ltr)
(color (color-rgb 0.000000 0.000000 0.000000))
(justify center)
(box-mode dynamic)
(box-width 344.000000)
(box-height 24.000000)
(box-unit pixels)
(hinting yes)


RE: Font not found - akovia - 09-23-2021

(01-12-2021, 03:06 PM)rich2005 Wrote: Go here: http://sourceforge.net/projects/gimp-tools/files/scripts/
Download the text-info-0.1.py plugin (dated 2014-08-26) 

In use: Open the .xcf file. Do not use the text tool. Right click on text layer, bottom of the menu click on show text information.

This is not working for me anymore in that it doesn't put the found information in a message box or the error console like it used to. Is this just me?

I can still see the information via the console though.


RE: Font not found - rich2005 - 09-23-2021

Ofnuts should really answer this one, but for the record.

Still working with kubuntu 20.04 and Gimp 2.10 28 (PPA version with python2 added) I get the message box. Starting Gimp from console, still get message box, nothing in the console.

Which linux and Gimp are you now using ?


RE: Font not found - akovia - 09-23-2021

(09-23-2021, 03:37 PM)rich2005 Wrote: Ofnuts should really answer this one, but for the record.

Still working with kubuntu 20.04 and Gimp 2.10 28 (PPA version with python2 added)  I get the message box. Starting Gimp from console, still get message box, nothing in the console.

Which linux and Gimp are you now using ?

5.14.3-arch1-1

extra/gimp 2.10.28-1 (20.0 MiB 111.9 MiB) (Installed)


RE: Font not found - Ofnuts - 09-24-2021

(09-23-2021, 03:01 PM)akovia Wrote:
(01-12-2021, 03:06 PM)rich2005 Wrote: Go here: http://sourceforge.net/projects/gimp-tools/files/scripts/
Download the text-info-0.1.py plugin (dated 2014-08-26) 

In use: Open the .xcf file. Do not use the text tool. Right click on text layer, bottom of the menu click on show text information.

This is not working for me anymore in that it doesn't put the found information in a message box or the error console like it used to. Is this just me?

I can still see the information via the console though.

The code in the script freshly downloaded from SourceForge:

Code:
import re, os, sys
from gimpfu import *

def text_info(img,layer):
    parasites=None
    try:
        parasites=layer.parasite_list()
    except Exception as e:
        pass;
    if parasites and 'gimp-text-layer' in parasites:
        data=layer.parasite_find('gimp-text-layer').data
        pdb.gimp_message('Text layer "%s": %s' % (layer.name,data))
    else:
        pdb.gimp_message('No text information found for layer "%s"' % layer.name)

All the output uses Gimp communication channels... (dialog box or error console, depening on your settings). Possibly using a modified version?