Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: firefox cannot display tahoma font content

  1. #1
    Join Date
    Apr 2014
    Beans
    6

    firefox cannot display tahoma font content

    Hi,

    I'm using firefox 28 on Ubuntu 13.10
    Recently I installed tahoma font, but firefox renders arabic/persian tahoma content as empty. (can not display content)

    I think this is a font file permission issue, because when run firefox as root (sudo firefox) it works correctly.

    Would you please help me how to remove the problem? (I really need to run firefox with normal user not as root)

    My system conditions:
    - I installed package: msttcorefonts
    - I copied fonts: "tahoma.ttf" and "tahomabd.ttf" from a Windows systems to "/usr/share/fonts/truetype/msttcorefonts" and ran "sudo fc-cache -f -v"
    - run firefox: The arabic/persian content render empty as though there is no text there.
    - run sudo firefox: All text dispalyed correctly
    - chrome works correctly.
    - I checked the permissions of font files and gave maximum access to them.
    - I have another font files at "home/.font" directory.

    Thanks

  2. #2
    Join Date
    Mar 2011
    Location
    U.K.
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: firefox cannot display tahoma font content

    The font is owned by root ... do this ..

    Code:
    sudo nautilus
    navigate to File System > /usr/share/fonts/truetype/msttcorefonts

    select tahoma.ttf and right click > properties > permissions

    change owner and group from "root" to your "username"

  3. #3
    Join Date
    Nov 2011
    Beans
    2,336
    Distro
    Ubuntu

    Re: firefox cannot display tahoma font content

    All the fonts in /usr/share/fonts are owned by root:

    Code:
    lrwxrwxrwx 1 root root     16 Apr 10 10:14 verdanab.ttf -> Verdana_Bold.ttf
    -rw-r--r-- 1 root root 154264 Nov 12  1998 Verdana_Italic.ttf
    lrwxrwxrwx 1 root root     18 Apr 10 10:14 verdanai.ttf -> Verdana_Italic.ttf
    lrwxrwxrwx 1 root root     11 Apr 10 10:14 verdana.ttf -> Verdana.ttf
    -rw-r--r-- 1 root root 139640 Nov 12  1998 Verdana.ttf
    Does English text render correctly in Tahoma?

  4. #4
    Join Date
    Apr 2014
    Beans
    6

    Re: firefox cannot display tahoma font content

    Quote Originally Posted by buzzingrobot View Post
    All the fonts in /usr/share/fonts are owned by root:

    Code:
    lrwxrwxrwx 1 root root     16 Apr 10 10:14 verdanab.ttf -> Verdana_Bold.ttf
    -rw-r--r-- 1 root root 154264 Nov 12  1998 Verdana_Italic.ttf
    lrwxrwxrwx 1 root root     18 Apr 10 10:14 verdanai.ttf -> Verdana_Italic.ttf
    lrwxrwxrwx 1 root root     11 Apr 10 10:14 verdana.ttf -> Verdana.ttf
    -rw-r--r-- 1 root root 139640 Nov 12  1998 Verdana.ttf
    Does English text render correctly in Tahoma?
    Thanks for reply ...

    No, English text with "tahoma" font renders empty too. (I tested it by posting a multilingual text both in English/Persian at Facebook. The post whole is displayed empty in firefox)

    What's your idea?

  5. #5
    Join Date
    Nov 2011
    Beans
    2,336
    Distro
    Ubuntu

    Re: firefox cannot display tahoma font content

    Quote Originally Posted by shahab3 View Post
    What's your idea?
    I wish I had one.

    Working when FF is run as root certainly suggests a permissions problem. But, the fact that it works in Chrome suggests it isn't.

    "fc-match tahoma" will display what font fontconfig is actually using. I don't have Tahoma installed here, and it tells me DejaVu Sans is used when Tahoma is specified. I do have Verdana installed, and "fc-match verdana" produces "Verdana.ttf: "Verdana" "Normal".

  6. #6
    Join Date
    Apr 2014
    Beans
    6

    Re: firefox cannot display tahoma font content

    Running "fc-match tahoma" result:
    Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.conf is deprecated.
    tahoma.ttf: "Tahoma" "Normal"

    and running "fc-match verdana result:
    Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.conf is deprecated.
    Verdana.ttf: "Verdana" "Normal"


    I guess to trace the problem in two ways, bus as I am not linux expert I don't know how:

    1. As firefox doesn't load tahoma in normal mode and does it in root mode, I guess there is log error in normal about permission denied error. But I cannot find the error log of firefox. How can find it?

    2. Uninstall tahoma font and install it again. I removed fonts from "/usr/share/fonts/truetype/msttcorefonts/" directory and ran fc-cache. Also tested it with font-manager there was no tahoma font shown there. But chrome shows text with tahoma font exactly! (it means there is font available.) How to uninstall tahoma (or a font in general) completely from system?!

    I really need to fix this issue, I use firefox as my main browser.

    Thanks in advance

  7. #7
    Join Date
    Mar 2011
    Location
    U.K.
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: firefox cannot display tahoma font content

    Try running firefox in gksudo mode to test the font ...

    gksudo firefox

    re: http://www.psychocats.net/ubuntu/graphicalsudo

  8. #8
    Join Date
    Nov 2011
    Beans
    2,336
    Distro
    Ubuntu

    Re: firefox cannot display tahoma font content

    It's possible Chrome isn't using Tahoma. Highlight a word, right click on it, select Inspect, and see which font it is using.

  9. #9
    Join Date
    Apr 2014
    Beans
    6

    Re: firefox cannot display tahoma font content

    Try running firefox in gksudo mode to test the font ...

    gksudo firefox
    I ran, it works correctly like when when run by "sudo". (run by root configuration)

    It's possible Chrome isn't using Tahoma. Highlight a word, right click on it, select Inspect, and see which font it is using.

    I tested it. Chrome shows actually using tahoma. like when I run firefox by sudo or gksudo!

  10. #10
    Join Date
    Mar 2011
    Location
    U.K.
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: firefox cannot display tahoma font content


Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •