You are not logged in.

#1 2014-03-21 10:28:01

Carfax
Member
Registered: 2013-10-30
Posts: 30

[SOLVED]Font issue

Hi everyone,

I recently noticed that all codes embedded in pdfs or on websites are being rendered in a font i don't recognize and they're being rendered in uppercase. This is not much of an issue i presume, but i find it annnoying and will like to know what i may have done to cause it.

These are screenshots of a pdf Doc being rendered in uppercase

Screenshot_from_2014_03_21_09_54_42.png

Screenshot_from_2014_03_21_09_54_53.png

Last edited by Carfax (2014-03-27 08:34:24)

Offline

#2 2014-03-21 10:35:43

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Font issue

What application are you using for displaying these websites and pdfs?
Have you googled the issue?

Offline

#3 2014-03-21 10:39:50

Carfax
Member
Registered: 2013-10-30
Posts: 30

Re: [SOLVED]Font issue

karol wrote:

What application are you using for displaying these websites and pdfs?
Have you googled the issue?

Browser is Mozilla, pdfs are evince . I've googled the issue and i haven't found anything relating to it, though it may just have been wrong phrasing of my terms. I've tried several phrases though.

Offline

#4 2014-03-21 10:44:18

Cthulhu82
Member
From: Nantes, France
Registered: 2013-04-01
Posts: 159

Re: [SOLVED]Font issue

What fonts have you installed ? It is very likely you miss this one and evince replace it with another.


« En essayant continuellement, on finit par réussir.
Donc plus ça rate, plus ça a de chance de marcher. »
Devise Shadock

Offline

#5 2014-03-21 11:00:19

Carfax
Member
Registered: 2013-10-30
Posts: 30

Re: [SOLVED]Font issue

Cthulhu82 wrote:

What fonts have you installed ? It is very likely you miss this one and evince replace it with another.

I have  quite a number of fonts installed and i use gnome-tweak-tool to manage my selections, however i don't recognize fonts at all and they're not part of my selection. Evince has Courier, Times and Helvetica families installed(Thats apart from the embedded, but i've used the book on other distros and i can vouch they're not embedded"

Offline

#6 2014-03-21 11:09:10

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Font issue

When did it stat happening? Did you update some packages or changed a config around that time?
This looks like a bitmap font. Have you disabled bitmap fonts?

Offline

#7 2014-03-21 11:47:26

Carfax
Member
Registered: 2013-10-30
Posts: 30

Re: [SOLVED]Font issue

karol wrote:

When did it stat happening? Did you update some packages or changed a config around that time?
This looks like a bitmap font. Have you disabled bitmap fonts?

It's been a couple of weeks. And i hadn't really played around with any font configs at the said time.


I don't think i have any bitmap-fonts enabled do i?

[carfax conf.d]$ ls
10-scale-bitmap-fonts.conf             30-urw-aliases.conf  57-dejavu-sans.conf       69-unifont.conf
20-unhint-small-dejavu-sans.conf       40-nonlatin.conf     57-dejavu-sans-mono.conf  80-delicious.conf
20-unhint-small-dejavu-sans-mono.conf  45-latin.conf        57-dejavu-serif.conf      90-synthetic.conf
20-unhint-small-dejavu-serif.conf      49-sansserif.conf    60-latin.conf             README
20-unhint-small-vera.conf              50-user.conf         65-fonts-persian.conf
30-metric-aliases.conf                 51-local.conf        65-nonlatin.conf
 

Offline

#8 2014-03-21 11:49:50

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Font issue

Offline

#9 2014-03-21 11:53:58

Carfax
Member
Registered: 2013-10-30
Posts: 30

Re: [SOLVED]Font issue

Thanks for the link. I've disabled the scaling as well. Nothing has changed.

Offline

#10 2014-03-22 15:11:54

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [SOLVED]Font issue

A search that prints most of the fonts currently being used by Firefox:

lsof | grep -i firefox | egrep -i 'ttf|pfb'

Offline

#11 2014-03-22 20:08:38

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Font issue

Try using a firefox add-on, like 'Context font' to see that font is that https://addons.mozilla.org/en-US/firefo … text-font/
Here it shows that the text is '20px monospace', so it's not of much help.

Offline

#12 2014-03-25 09:56:57

Carfax
Member
Registered: 2013-10-30
Posts: 30

Re: [SOLVED]Font issue

thisoldman wrote:

A search that prints most of the fonts currently being used by Firefox:

lsof | grep -i firefox | egrep -i 'ttf|pfb'

Unfortunately i do not have the lsof utility installed, but i can see what type of font firefox is using in the preferences. It's serif. But i'm not as concerned with the web browser part as i am concerned with the rendering in the pdf docs.

Offline

#13 2014-03-25 11:20:06

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [SOLVED]Font issue

A page displayed in firefox often overrides your preferences.  The command I gave to use does not print what you have specified in your font preferences.  That command will print the filenames of the actual fonts used.

$ lsof | grep -i firefox | egrep -i 'ttf|pfb'
firefox  499     casey  mem   REG  8,5  555884  422396 /usr/share/fonts/TTF/ariali.ttf
firefox  499     casey  mem   REG  8,5  561924  422421 /usr/share/fonts/TTF/arialbi.ttf
firefox  499     casey  mem   REG  8,5  749004  422404 /usr/share/fonts/TTF/arialbd.ttf
firefox  499     casey  mem   REG  8,5  778552  422432 /usr/share/fonts/TTF/arial.ttf
firefox  499     casey  mem   REG  8,5  313408  420431 /usr/share/fonts/TTF/LiberationMono-Regular.ttf
firefox  499     casey  mem   REG  8,5  741536  400720 /usr/share/fonts/TTF/DejaVuSans.ttf

Offline

#14 2014-03-25 17:06:00

Carfax
Member
Registered: 2013-10-30
Posts: 30

Re: [SOLVED]Font issue

karol wrote:

Try using a firefox add-on, like 'Context font' to see that font is that https://addons.mozilla.org/en-US/firefo … text-font/
Here it shows that the text is '20px monospace', so it's not of much help.

I installed it, and it's showing the font as Open sans which i don't have on my system/or at least it's not visible through the gnome-tweak-tool selection interface. However it's the very same text being rendered in my pdf docs

Offline

#15 2014-03-25 17:09:20

Carfax
Member
Registered: 2013-10-30
Posts: 30

Re: [SOLVED]Font issue

thisoldman wrote:

A page displayed in firefox often overrides your preferences.  The command I gave to use does not print what you have specified in your font preferences.  That command will print the filenames of the actual fonts used.

$ lsof | grep -i firefox | egrep -i 'ttf|pfb'
firefox  499     casey  mem   REG  8,5  555884  422396 /usr/share/fonts/TTF/ariali.ttf
firefox  499     casey  mem   REG  8,5  561924  422421 /usr/share/fonts/TTF/arialbi.ttf
firefox  499     casey  mem   REG  8,5  749004  422404 /usr/share/fonts/TTF/arialbd.ttf
firefox  499     casey  mem   REG  8,5  778552  422432 /usr/share/fonts/TTF/arial.ttf
firefox  499     casey  mem   REG  8,5  313408  420431 /usr/share/fonts/TTF/LiberationMono-Regular.ttf
firefox  499     casey  mem   REG  8,5  741536  400720 /usr/share/fonts/TTF/DejaVuSans.ttf

Ok, i did a search

 
firefox    808      carfax  mem       REG                8,1    343388     660174 /usr/share/fonts/TTF/DejaVuSerif-Italic.ttf
firefox    808      carfax  mem       REG                8,1     70730     660574 /usr/share/fonts/Type1/n019004l.pfb
firefox    808      carfax  mem       REG                8,1     59088     659841 /usr/share/fonts/TTF/AAIRCN__.ttf
firefox    808      carfax  mem       REG                8,1    109157     660622 /usr/share/fonts/Type1/p052004l.pfb
firefox    808      carfax  mem       REG                8,1    632168     660160 /usr/share/fonts/TTF/DejaVuSans-BoldOblique.ttf
firefox    808      carfax  mem       REG                8,1    335068     660171 /usr/share/fonts/TTF/DejaVuSansMono.ttf
firefox    808      carfax  mem       REG                8,1    345364     660172 /usr/share/fonts/TTF/DejaVuSerif-Bold.ttf
firefox    808      carfax  mem       REG                8,1    693876     660159 /usr/share/fonts/TTF/DejaVuSans-Bold.ttf
firefox    808      carfax  mem       REG                8,1    741536     660163 /usr/share/fonts/TTF/DejaVuSans.ttf
firefox    808      carfax  mem       REG                8,1    367260     660175 /usr/share/fonts/TTF/DejaVuSerif.ttf
firefox    808      carfax  mem       REG                8,1     79155     660571 /usr/share/fonts/Type1/n019003l.pfb

Offline

#16 2014-03-27 01:22:10

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [SOLVED]Font issue

I suspect you font configuration rules are setting an unwanted substitution for 'Monospace'.

'Monospace' and 'Serif' are not font names.  They are similar to aliases.  To find the font being substituted for 'Monospace', try

$ fc-match Monospace

In my case it returns: DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"

The font I don't recognize in your listing is AAIRCN__.ttf.  Is that your 'Monospace' font?  I coudn't find a package that includes it.

If you are not using the infinality packages, a simple cure might come from reinstalling the DejaVu package: 'pacman -S ttf-dejavu'.  If that does not work, you are going to have to search through your font configuration files and determine where the font substitution rule for Monospace is being set.

Offline

#17 2014-03-27 08:33:41

Carfax
Member
Registered: 2013-10-30
Posts: 30

Re: [SOLVED]Font issue

thisoldman wrote:

I suspect you font configuration rules are setting an unwanted substitution for 'Monospace'.

'Monospace' and 'Serif' are not font names.  They are similar to aliases.  To find the font being substituted for 'Monospace', try

$ fc-match Monospace

In my case it returns: DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"

The font I don't recognize in your listing is AAIRCN__.ttf.  Is that your 'Monospace' font?  I coudn't find a package that includes it.

If you are not using the infinality packages, a simple cure might come from reinstalling the DejaVu package: 'pacman -S ttf-dejavu'.  If that does not work, you are going to have to search through your font configuration files and determine where the font substitution rule for Monospace is being set.


Thanks you very much for your time and patience. Yeah seems like the problem was substitution after all, So i went and did replacements for all bitmap fonts though i didn't have bitmap enabled. Solved the problem.

Offline

Board footer

Powered by FluxBB