The officially official Devuan Forum!

You are not logged in.

#1 2023-05-19 04:20:03

sivaprema
Member
Registered: 2018-12-21
Posts: 22  

[SOLVED] TTF True Type Fonts

Hi! English is not my first language, please, excuse me. I had a trouble with TTF: I can't see them with mate font visor, or font forge or even libreoffice. (in mate visor "unable to read the font face file ..."; in fontforge ".._ttf is not a known format (or uses features of that format fontforge does not support, or is so badly corrupted as to be unreadable)") Fonts are in /home/.fonts/ and I can see them in another PC with Manjaro, and in a tablet with android...then, ttf fonts are fine, cos are  the same (copy and paste).  I had this fonts trouble in chimaera, and troubles with mate. All mate's issues gone resolved with an update to Devuan testing (and troubles with Network Manager and WiFi too was resolved), but TTF issues persist. I don't know what can I do, or what I can install or modify to resolve it. And I don't know what can I post to define better my problem. I hope someone understand what I am saying smile... and someone had some idea. Thanks
SP

Offline

#2 2023-05-19 08:05:23

sivaprema
Member
Registered: 2018-12-21
Posts: 22  

Re: [SOLVED] TTF True Type Fonts

I put it too in /usr/share/fonts/ doing fc-cache -f -v, but new fonts are not recognized, even if they are recognized in other dispositives.I need these particular fonts for my work... is not trivial.

Offline

#3 2023-05-19 08:38:55

soren
Member
Registered: 2023-04-30
Posts: 142  

Re: [SOLVED] TTF True Type Fonts

Does the font show up if you grep for the font.

Try this.

fc-list | grep "YOUR FONT NAME.TTF"

Offline

#4 2023-05-19 08:40:27

rolfie
Member
Registered: 2017-11-25
Posts: 1,160  

Re: [SOLVED] TTF True Type Fonts

Well, I copy new fonts to:

TTF: /usr/share/fonts/truetype
OTF: /usr/share/fonts/opentype
ATM: /usr/share/fonts/type1, not really supported any more nowadays

and I create a new directory for them below that paths. Do the copy with root privileges, and make sure the directory has 755 as octal rights and the fonts have 644 as octal rights.

Works fine.

Offline

#5 2023-05-19 09:19:58

alexkemp
Member
Registered: 2018-05-14
Posts: 338  

Re: [SOLVED] TTF True Type Fonts

sivaprema wrote:

in fontforge ".._ttf is not a known format

The use of an underscore (“_”) concerns me there. In general Linux uses mime (or file) to discover what a file actually is, rather than the Window$-inspired “.tld” convention.

I do not have fontforge installed.

Possibly one way to begin to diagnose your situation is from the command-line. If you have mlocate installed (to quickly locate files) and either FireFox and/or Thunderbird installed then you will be able to locate this specific TTF font:

$ file /usr/lib/firefox-esr/fonts/TwemojiMozilla.ttf
/usr/lib/firefox-esr/fonts/TwemojiMozilla.ttf: TrueType Font data, 17 tables, 1st "COLR", 12 names, Macintosh, type 1 string

That should help to begin to help discover exactly what your system thinks any particular ttf file is.

One final other common source is mscorefonts and/or fonts-liberation:

$ apt search fonts-liberation
Sorting... Done
Full Text Search... Done
fonts-liberation/stable,now 1:1.07.4-11 all [installed]
  Fonts with the same metrics as Times, Arial and Courier

fonts-liberation2/stable,now 2.1.3-1 all [installed]
  Fonts with the same metrics as Times, Arial and Courier (v2)

ttf-mscorefonts-installer/stable,now 3.8 all [installed]
  Installer for Microsoft TrueType core fonts

$ file /usr/share/fonts/truetype/msttcorefonts/Arial.ttf
/usr/share/fonts/truetype/msttcorefonts/Arial.ttf: TrueType Font data, digitally signed, 23 tables, 1st "DSIG", 70 names, Unicode, Typeface \251 The Monotype Corporation plc. Data \251 The Monotype Corporation plc/Type Solution

HTH

Offline

#6 2023-05-19 16:48:20

sivaprema
Member
Registered: 2018-12-21
Posts: 22  

Re: [SOLVED] TTF True Type Fonts

soren wrote:

Does the font show up if you grep for the font.

Try this.

fc-list | grep "YOUR FONT NAME.TTF"

nothing happen:

 root@devuan:/home/gaurial# fc-list | grep AHA6.ttf
root@devuan:/home/gaurial# 

Last edited by sivaprema (2023-05-19 20:23:46)

Offline

#7 2023-05-19 16:52:58

sivaprema
Member
Registered: 2018-12-21
Posts: 22  

Re: [SOLVED] TTF True Type Fonts

rolfie wrote:

Well, I copy new fonts to:

TTF: /usr/share/fonts/truetype
OTF: /usr/share/fonts/opentype
ATM: /usr/share/fonts/type1, not really supported any more nowadays

and I create a new directory for them below that paths. Do the copy with root privileges, and make sure the directory has 755 as octal rights and the fonts have 644 as octal rights.

Works fine.

Thank you for answer.  Path and privileges are the same here, but nothing happen.

Offline

#8 2023-05-19 18:02:59

sivaprema
Member
Registered: 2018-12-21
Posts: 22  

Re: [SOLVED] TTF True Type Fonts

alexkemp wrote:
sivaprema wrote:

in fontforge ".._ttf is not a known format

The use of an underscore (“_”) concerns me there. In general Linux uses mime (or file) to discover what a file actually is, rather than the Window$-inspired “.tld” convention.

I do not have fontforge installed.

Possibly one way to begin to diagnose your situation is from the command-line. If you have mlocate installed (to quickly locate files) and either FireFox and/or Thunderbird installed then you will be able to locate this specific TTF font:

$ file /usr/lib/firefox-esr/fonts/TwemojiMozilla.ttf
/usr/lib/firefox-esr/fonts/TwemojiMozilla.ttf: TrueType Font data, 17 tables, 1st "COLR", 12 names, Macintosh, type 1 string

That should help to begin to help discover exactly what your system thinks any particular ttf file is.

One final other common source is mscorefonts and/or fonts-liberation:

$ apt search fonts-liberation
Sorting... Done
Full Text Search... Done
fonts-liberation/stable,now 1:1.07.4-11 all [installed]
  Fonts with the same metrics as Times, Arial and Courier

fonts-liberation2/stable,now 2.1.3-1 all [installed]
  Fonts with the same metrics as Times, Arial and Courier (v2)

ttf-mscorefonts-installer/stable,now 3.8 all [installed]
  Installer for Microsoft TrueType core fonts

$ file /usr/share/fonts/truetype/msttcorefonts/Arial.ttf
/usr/share/fonts/truetype/msttcorefonts/Arial.ttf: TrueType Font data, digitally signed, 23 tables, 1st "DSIG", 70 names, Unicode, Typeface \251 The Monotype Corporation plc. Data \251 The Monotype Corporation plc/Type Solution

HTH

Thank you for answer.

AHA6.ttf is the font that I need. I had done your suggestion:

 root@devuan:/home/gaurial# file /usr/lib/firefox-esr/fonts/TwemojiMozilla.ttf
/usr/lib/firefox-esr/fonts/TwemojiMozilla.ttf: TrueType Font data, 17 tables, 1st "COLR", 12 names, Macintosh, type 1 string

root@devuan:/home/gaurial# file /usr/share/fonts/truetype/aha/AHA6.ttf
/usr/share/fonts/truetype/aha/AHA6.ttf: data 

Now, AHA6.ttf was created for me with fontforge. But I used for years... problem is now with a fresh install.

If I put DejaVuSans.ttf in /home...local/font/ and I do fc-cache -f -v (as superusser and normal user) I had:

 /home/gaurial/.local/share/fonts: caching, new cache contents: 0 fonts, 0 dirs 

and if I do a file I had:

root@devuan:/home/gaurial# file /home/gaurial/.local/share/fonts/DejaVuSans.ttf
/home/gaurial/.local/share/fonts/DejaVuSans.ttf: data 

... the same thing as with AHA6.ttf ...

...but if I do a file with the same font DejaVuSans.ttf installed with apt I had:

 root@devuan:/home/gaurial# file /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf: TrueType Font data, 20 tables, 1st "FFTM", 26 names, Macintosh 

Then is not a problem with my font.
May be directories issue? no. If I put a font (not created for me) ImperiumSerif.ttf In /usr/share/fonts/truetype/Imperium and I do fc-cache -f -v as SU, I had:

/usr/share/fonts/truetype/Imperium: caching, new cache contents: 0 fonts, 0 dirs 

and if I do a file I had:

root@devuan:/home/gaurial# file /usr/share/fonts/truetype/Imperium/ImperiumSerif.ttf
/usr/share/fonts/truetype/Imperium/ImperiumSerif.ttf: data 

... the same thing as with AHA6.ttf

Finally, Typographic viewer of Mate is not able to see ImperiumSerif.ttf in /home/... neither /user/...  as with AHA6.ttf
and Fontforge open (recognize) /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf installed with apt, but not  /home/gaurial/.local/share/fonts/DejaVuSans.ttf .

Last edited by sivaprema (2023-05-19 20:22:51)

Offline

#9 2023-05-19 19:56:31

golinux
Administrator
Registered: 2016-11-25
Posts: 3,302  

Re: [SOLVED] TTF True Type Fonts

That is pretty unreadable without block or inline code tags . . .

Offline

#10 2023-05-19 20:05:41

alexkemp
Member
Registered: 2018-05-14
Posts: 338  

Re: [SOLVED] TTF True Type Fonts

Please use [ code ] ... [/ code] tags to quote terminal-results (as below) (keeps the text in this window small). You would also be well advised to use your computer as an ordinary user rather than the root user. Switch to the root user only when you have some extensive admin to do that actually *requires* root to work (updating the system is such a requirement).

sivaprema wrote:
# file /usr/lib/firefox-esr/fonts/TwemojiMozilla.ttf
/usr/lib/firefox-esr/fonts/TwemojiMozilla.ttf: TrueType Font data, 17 tables, 1st "COLR", 12 names, Macintosh, type 1 string

That is a proper ttf font …

# file /usr/share/fonts/truetype/aha/AHA6.ttf
/usr/share/fonts/truetype/aha/AHA6.ttf: data

… and that is most unlikely to be such a font. Here is one way to check:–

$ strings /usr/lib/firefox-esr/fonts/TwemojiMozilla.ttf | wc -l
28319

(28,319 lines of text-strings - that is what a ttf font should look like)

Here is what the top of the file looks like (you can also change the 'head' to 'less' (no quotes) to examine the whole file):–

$ strings /usr/lib/firefox-esr/fonts/TwemojiMozilla.ttf | head
COLR
QlCPAL
FFTM
GDEF
GSUBq
OS/24
`cmap%=
cvt 
gasp
glyf

Now an examination using a hex-viewer; look at the first 12-bytes to see the magic-signature for a ttf font (ALL ttf-fonts should look something like this in the 1st 12 bytes):

$ hexdump -C /usr/lib/firefox-esr/fonts/TwemojiMozilla.ttf | head
00000000  00 01 00 00 00 11 01 00  00 04 00 10 43 4f 4c 52  |............COLR|
00000010  9b 59 1b ad 00 13 22 f8  00 02 51 6c 43 50 41 4c  |.Y...."...QlCPAL|
00000020  99 fd 98 85 00 15 74 64  00 00 0f ea 46 46 54 4d  |......td....FFTM|
00000030  94 98 f7 41 00 15 84 50  00 00 00 1c 47 44 45 46  |...A...P....GDEF|
00000040  00 27 34 59 00 15 84 6c  00 00 00 1e 47 53 55 42  |.'4Y...l....GSUB|
00000050  71 92 ee f7 00 15 84 8c  00 00 6c 80 4f 53 2f 32  |q.........l.OS/2|
00000060  34 c3 0a 83 00 00 01 98  00 00 00 60 63 6d 61 70  |4..........`cmap|
00000070  25 3d b7 6c 00 00 6a a8  00 00 0b fa 63 76 74 20  |%=.l..j.....cvt |
00000080  00 11 01 44 00 00 76 a4  00 00 00 04 67 61 73 70  |...D..v.....gasp|
00000090  ff ff 00 03 00 13 22 f0  00 00 00 08 67 6c 79 66  |......".....glyf|

You can now examine both TwemojiMozilla.ttf & AHA6.ttf on your own machine to discover whether these rogue fonts are actually fonts at all.

(if you do not yet have hexdump then install bsdextrautils (part of chimaera-stable)):–

$ apt search hexdump
Sorting... Done
Full Text Search... Done
bsdextrautils/stable,now 2.36.1-8+devuan2 amd64 [installed]
  extra utilities from 4.4BSD-Lite

Offline

#11 2023-05-19 20:11:32

sivaprema
Member
Registered: 2018-12-21
Posts: 22  

Re: [SOLVED] TTF True Type Fonts

golinux wrote:

That is pretty unreadable without block or inline code tags . . .

Plese, sorry, I didnt know how to do that. Now that Alexkemp explained to me I will do it in this way in future posts. Thank you

Offline

#12 2023-05-19 20:18:21

sivaprema
Member
Registered: 2018-12-21
Posts: 22  

Re: [SOLVED] TTF True Type Fonts

alexkemp wrote:

Please use [ code ] ... [/ code] tags to quote terminal-results (as below) (keeps the text in this window small). You would also be well advised to use your computer as an ordinary user rather than the root user. Switch to the root user only when you have some extensive admin to do that actually *requires* root to work (updating the system is such a requirement).

sivaprema wrote:
# file /usr/lib/firefox-esr/fonts/TwemojiMozilla.ttf
/usr/lib/firefox-esr/fonts/TwemojiMozilla.ttf: TrueType Font data, 17 tables, 1st "COLR", 12 names, Macintosh, type 1 string

That is a proper ttf font …

# file /usr/share/fonts/truetype/aha/AHA6.ttf
/usr/share/fonts/truetype/aha/AHA6.ttf: data

… and that is most unlikely to be such a font. Here is one way to check:–

$ strings /usr/lib/firefox-esr/fonts/TwemojiMozilla.ttf | wc -l
28319

(28,319 lines of text-strings - that is what a ttf font should look like)

Here is what the top of the file looks like (you can also change the 'head' to 'less' (no quotes) to examine the whole file):–

$ strings /usr/lib/firefox-esr/fonts/TwemojiMozilla.ttf | head
COLR
QlCPAL
FFTM
GDEF
GSUBq
OS/24
`cmap%=
cvt 
gasp
glyf

Now an examination using a hex-viewer; look at the first 12-bytes to see the magic-signature for a ttf font (ALL ttf-fonts should look something like this in the 1st 12 bytes):

$ hexdump -C /usr/lib/firefox-esr/fonts/TwemojiMozilla.ttf | head
00000000  00 01 00 00 00 11 01 00  00 04 00 10 43 4f 4c 52  |............COLR|
00000010  9b 59 1b ad 00 13 22 f8  00 02 51 6c 43 50 41 4c  |.Y...."...QlCPAL|
00000020  99 fd 98 85 00 15 74 64  00 00 0f ea 46 46 54 4d  |......td....FFTM|
00000030  94 98 f7 41 00 15 84 50  00 00 00 1c 47 44 45 46  |...A...P....GDEF|
00000040  00 27 34 59 00 15 84 6c  00 00 00 1e 47 53 55 42  |.'4Y...l....GSUB|
00000050  71 92 ee f7 00 15 84 8c  00 00 6c 80 4f 53 2f 32  |q.........l.OS/2|
00000060  34 c3 0a 83 00 00 01 98  00 00 00 60 63 6d 61 70  |4..........`cmap|
00000070  25 3d b7 6c 00 00 6a a8  00 00 0b fa 63 76 74 20  |%=.l..j.....cvt |
00000080  00 11 01 44 00 00 76 a4  00 00 00 04 67 61 73 70  |...D..v.....gasp|
00000090  ff ff 00 03 00 13 22 f0  00 00 00 08 67 6c 79 66  |......".....glyf|

You can now examine both TwemojiMozilla.ttf & AHA6.ttf on your own machine to discover whether these rogue fonts are actually fonts at all.

(if you do not yet have hexdump then install bsdextrautils (part of chimaera-stable)):–

$ apt search hexdump
Sorting... Done
Full Text Search... Done
bsdextrautils/stable,now 2.36.1-8+devuan2 amd64 [installed]
  extra utilities from 4.4BSD-Lite

Thank you for your explanation about how  to quote properly terminal-results. I didn't know how to do it . And thanks for your advice about root use. Now I will check AHA6.ttf as you suggest an I'll post results.

Offline

#13 2023-05-19 20:50:44

sivaprema
Member
Registered: 2018-12-21
Posts: 22  

Re: [SOLVED] TTF True Type Fonts

 # strings /usr/share/fonts/truetype/aha/AHA6.ttf | wc -l
832
# strings /usr/share/fonts/truetype/Imperium/ImperiumSerif.ttf | wc -l
1083
# strings /usr/lib/firefox-esr/fonts/TwemojiMozilla.ttf | wc -l
28319 

yes, number is inferior, but why I can use it in other dispositives, (another pc, notebook and tablet -with linux-deploy+debian 8) ?

and why ...

 # strings /home/gaurial/.local/share/fonts/DejaVuSans.ttf | wc -l
24562 

... gives a proper number, but the font is not recognized, if is not installed with apt?

May be something is wrong in the way of my system recongize the fonts, and not in the fonts themselves.

Now i will go hexdump

Last edited by sivaprema (2023-05-19 20:51:17)

Offline

#14 2023-05-19 22:10:47

sivaprema
Member
Registered: 2018-12-21
Posts: 22  

Re: [SOLVED] TTF True Type Fonts

In my pc I had smilar results... then hexdump is going well..

 # hexdump -C /usr/lib/firefox-esr/fonts/TwemojiMozilla.ttf | head
00000000  00 01 00 00 00 11 01 00  00 04 00 10 43 4f 4c 52  |............COLR|
00000010  9b 59 1b ad 00 13 22 f8  00 02 51 6c 43 50 41 4c  |.Y...."...QlCPAL|
00000020  99 fd 98 85 00 15 74 64  00 00 0f ea 46 46 54 4d  |......td....FFTM|
00000030  94 98 f7 41 00 15 84 50  00 00 00 1c 47 44 45 46  |...A...P....GDEF|
00000040  00 27 34 59 00 15 84 6c  00 00 00 1e 47 53 55 42  |.'4Y...l....GSUB|
00000050  71 92 ee f7 00 15 84 8c  00 00 6c 80 4f 53 2f 32  |q.........l.OS/2|
00000060  34 c3 0a 83 00 00 01 98  00 00 00 60 63 6d 61 70  |4..........`cmap|
00000070  25 3d b7 6c 00 00 6a a8  00 00 0b fa 63 76 74 20  |%=.l..j.....cvt |
00000080  00 11 01 44 00 00 76 a4  00 00 00 04 67 61 73 70  |...D..v.....gasp|
00000090  ff ff 00 03 00 13 22 f0  00 00 00 08 67 6c 79 66  |......".....glyf| 

... and local DejaVuSans.ttf (not working and not made by me) had another results...

# hexdump /home/gaurial/.local/share/fonts/DejaVuSans.ttf | head
0000000 202e 2020 2020 2020 2020 1020 5400 bb12
0000010 56b2 56b2 0004 bb12 56b2 2d4a 0000 0000
0000020 2e2e 2020 2020 2020 2020 1020 5400 bb12
0000030 56b2 56b2 0004 bb12 56b2 2466 0000 0000
0000040 7342 2e00 6500 6e00 6300 0f00 8c00 0000
0000050 ffff ffff ffff ffff ffff 0000 ffff ffff
0000060 6101 6400 6f00 6200 6500 0f00 8c00 002d
0000070 0064 0069 006e 0067 0062 0000 0061 0074
0000080 4441 424f 2d45 317e 4e45 2043 5400 bb12
0000090 56b2 56b2 0004 bb12 56b2 2d4b 2b6e 0000 

... but we obtain a similar result in global dir, and here DejaVuSans.ttf is recognized (and tested in writer libreoffice)

 # hexdump /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf | head
0000000 0100 0000 1400 0001 0400 4000 4646 4d54
0000010 4fa0 241e 0000 4c01 0000 1c00 4447 4645
0000020 ec8e c394 0000 6801 0000 9202 5047 534f
0000030 8056 35c4 0000 fc03 0000 8a9e 5347 4255
0000040 d0c1 5940 0000 88a2 0000 de15 414d 4854
0000050 32a7 7d38 0000 68b8 0000 3e06 534f 322f
0000060 2d59 2d76 0000 a8be 0000 5600 6d63 7061
0000070 09f2 2d53 0000 00bf 0000 901b 7663 2074
0000080 6900 391d 0000 90da 0000 fe01 7066 6d67
0000090 3471 6a76 0000 90dc 0000 ab00 6167 7073 

... and AHA6.ttf (made by me with Fontforge) have a similar result  to working and not-working  DejaVuSans.ttf :

# hexdump /usr/share/fonts/truetype/aha/AHA6.ttf | head
0000000 7507 696e 4631 4232 7507 696e 4631 4332
0000010 7507 696e 4631 4432 7507 696e 4631 4532
0000020 7507 696e 4631 4632 7507 696e 4631 3033
0000030 7507 696e 4631 3133 7507 696e 4631 3233
0000040 7507 696e 4631 3333 7507 696e 4631 3433
0000050 7507 696e 4631 3533 7507 696e 4631 3633
0000060 7507 696e 4631 3733 7507 696e 4631 3833
0000070 7507 696e 4631 3933 7507 696e 4631 4133
0000080 7507 696e 4631 4233 7507 696e 4631 4333
0000090 7507 696e 4631 4433 7507 696e 4631 4533 

In my system some fonts don't have ...

  |............COLR| 

but are recognized and working. May be somethings related with fonts management is wrong.

Offline

#15 2023-05-19 22:32:16

sivaprema
Member
Registered: 2018-12-21
Posts: 22  

Re: [SOLVED] TTF True Type Fonts

And when I try to have a preview of several fonts with mate typographic viewer I had this error (from xsession-errors) in all tested fonts:

 (caja:1813): GLib-GObject-CRITICAL **: 13:01:20.518: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Could not load face 'file:///media/gaurial/Wuya34Gb/.fonts/Biblos.ttf': Unable to read the font face file 'file:///media/gaurial/Wuya34Gb/.fonts/Biblos.ttf'
Could not load face 'file:///media/gaurial/Wuya34Gb/.fonts/Borg.ttf': Unable to read the font face file 'file:///media/gaurial/Wuya34Gb/.fonts/Borg.ttf'
Could not load face 'file:///media/gaurial/Wuya34Gb/.fonts/DejaVuSans.ttf': Unable to read the font face file 'file:///media/gaurial/Wuya34Gb/.fonts/DejaVuSans.ttf'
Could not load face 'file:///media/gaurial/Wuya34Gb/.fonts/DejaVuSansCondensed-BoldOblique.ttf': Unable to read the font face file 'file:///media/gaurial/Wuya34Gb/.fonts/DejaVuSansCondensed-BoldOblique.ttf'
Could not load face 'file:///media/gaurial/Wuya34Gb/.fonts/DejaVuSansCondensed-Oblique.ttf': Unable to read the font face file 'file:///media/gaurial/Wuya34Gb/.fonts/DejaVuSansCondensed-Oblique.ttf'
Could not load face 'file:///media/gaurial/Wuya34Gb/.fonts/DEVA5.TTF': Unable to read the font face file 'file:///media/gaurial/Wuya34Gb/.fonts/DEVA5.TTF'
Could not load face 'file:///media/gaurial/Wuya34Gb/.fonts/dreamorb.ttf': Unable to read the font face file 'file:///media/gaurial/Wuya34Gb/.fonts/dreamorb.ttf'
Could not load face 'file:///media/gaurial/Wuya34Gb/.fonts/dreamori.ttf': Unable to read the font face file 'file:///media/gaurial/Wuya34Gb/.fonts/dreamori.ttf'
Could not load face 'file:///media/gaurial/Wuya34Gb/.fonts/Fabrini.ttf': Unable to read the font face file 'file:///media/gaurial/Wuya34Gb/.fonts/Fabrini.ttf'
Could not load face 'file:///media/gaurial/Wuya34Gb/.fonts/GE_Inspira.ttf': Unable to read the font face file 'file:///media/gaurial/Wuya34Gb/.fonts/GE_Inspira.ttf'
Could not load face 'file:///media/gaurial/Wuya34Gb/.fonts/GREETING.ttf': Unable to read the font face file 'file:///media/gaurial/Wuya34Gb/.fonts/GREETING.ttf'
Could not load face 'file:///media/gaurial/Wuya34Gb/.fonts/ImperiumSerif.ttf': Unable to read the font face file 'file:///media/gaurial/Wuya34Gb/.fonts/ImperiumSerif.ttf'
Could not load face 'file:///media/gaurial/Wuya34Gb/.fonts/Klingon.ttf': Unable to read the font face file 'file:///media/gaurial/Wuya34Gb/.fonts/Klingon.ttf'
Could not load face 'file:///media/gaurial/Wuya34Gb/.fonts/MONTAL~1.TTF': Unable to read the font face file 'file:///media/gaurial/Wuya34Gb/.fonts/MONTAL~1.TTF'
Could not load face 'file:///media/gaurial/Wuya34Gb/.fonts/portcreb.ttf': Unable to read the font face file 'file:///media/gaurial/Wuya34Gb/.fonts/portcreb.ttf'
Could not load face 'file:///media/gaurial/Wuya34Gb/.fonts/Sans12.TTF': Unable to read the font face file 'file:///media/gaurial/Wuya34Gb/.fonts/Sans12.TTF'
Could not load face 'file:///media/gaurial/Wuya34Gb/.fonts/Starjout.ttf': Unable to read the font face file 'file:///media/gaurial/Wuya34Gb/.fonts/Starjout.ttf'
Could not load face 'file:///media/gaurial/Wuya34Gb/.fonts/swiss911.ttf': Unable to read the font face file 'file:///media/gaurial/Wuya34Gb/.fonts/swiss911.ttf'
Can't load the font face: Unable to read the font face file 'file:///media/gaurial/Wuya34Gb/.fonts/dreamorb.ttf'  

Offline

#16 2023-05-20 00:15:07

alexkemp
Member
Registered: 2018-05-14
Posts: 338  

Re: [SOLVED] TTF True Type Fonts

You have not included the full command for hexdump to get the correct result (it is hexdump -C). However, to make life simple for yourself use the shortcut hd (I only just discovered that just now - it is also hexdump).

If you look at this Wiki page for File Signatures you will find that the magic signature for ttf is 00 01 00 00 00. Therefore:

$ hd /usr/lib/firefox-esr/fonts/TwemojiMozilla.ttf | head
00000000  00 01 00 00 00 11 01 00  00 04 00 10 43 4f 4c 52  |............COLR|
00000010  9b 59 1b ad 00 13 22 f8  00 02 51 6c 43 50 41 4c  |.Y...."...QlCPAL|
00000020  99 fd 98 85 00 15 74 64  00 00 0f ea 46 46 54 4d  |......td....FFTM|
00000030  94 98 f7 41 00 15 84 50  00 00 00 1c 47 44 45 46  |...A...P....GDEF|
00000040  00 27 34 59 00 15 84 6c  00 00 00 1e 47 53 55 42  |.'4Y...l....GSUB|
00000050  71 92 ee f7 00 15 84 8c  00 00 6c 80 4f 53 2f 32  |q.........l.OS/2|
00000060  34 c3 0a 83 00 00 01 98  00 00 00 60 63 6d 61 70  |4..........`cmap|
00000070  25 3d b7 6c 00 00 6a a8  00 00 0b fa 63 76 74 20  |%=.l..j.....cvt |
00000080  00 11 01 44 00 00 76 a4  00 00 00 04 67 61 73 70  |...D..v.....gasp|
00000090  ff ff 00 03 00 13 22 f0  00 00 00 08 67 6c 79 66  |......".....glyf|

and you will spot the magic signature starting at '00000000'. If *your* ttf files do not start with this signature (which AHA6.ttf does not), then they will not be recognised by the system as TTF font files. My best guess then is that something within the way that you are processing them is shafting them.

There is a helpful Step-by-Step install TTF fonts on Linux page if you need help on that.

Update: spel-check

Last edited by alexkemp (2023-05-20 10:08:58)

Offline

#17 2023-05-20 00:36:03

sivaprema
Member
Registered: 2018-12-21
Posts: 22  

Re: [SOLVED] TTF True Type Fonts

Thank you Alexkemp. Finally solved. Your suggestions made think in a possible corruption of files inside a flash drive (fresh install... then I moved fonts to a new PC through a flash drive)... and yes... files were corrupted. When I moved them with another flash drive, system recognized AHA6.ttf and all other fonts. Thank you for your guide and time... I learned some new things, commands and how to post properly from you. Thanks again.
Pd: You was right .... system is fine and fonts were bad smile

Offline

#18 2023-05-20 16:03:09

golinux
Administrator
Registered: 2016-11-25
Posts: 3,302  

Re: [SOLVED] TTF True Type Fonts

Delighted that you solved your font issue! Apologies if I seemed a little grumpy earlier. smile

Offline

Board footer