Building Font Cache, VLC And MPlayer Troubleshooting

Martin Brinkmann
Aug 1, 2010
Updated • May 9, 2012
Music and Video, Tutorials, Windows
|
13

Nothing is more frustrating than having to wait until a media player has finished building the font cache, before a video can be played on the local computer system. Especially so, if the "building font cache" window appears every time the media player is used to play videos.

The first question that comes to mind is this: Why is there a font cache at all? It's video, not some textual content that is displayed in the program window. The font cache apparently is used for subtitles and On Screen Displays (OSD). Both VLC Media Player and MPlayer (and variants like SMPlayer) make use of a font cache to display subtitles and OSD.

Both media players seem to create the font cache regardless of the fact if it is needed or not to view the video.

building font cache
building font cache

In theory, the font cache is build once, and stored in a directory on the hard drive for faster access to the required data.

Font Cache Location

VLC stores the font cache in the AppData folder in Windows 7, more precisely under username > AppData > Roaming > vlc. The file uses a long cryptic file name and makes use of the extension cache-2. Windows XP users will find the font cache in Documents and Settings > username > Application Data > vlc.

font cache directory
font cache directory

The most common MPlayer font cache locations are username > fontconfig > cache for Windows 7 (and Vista probably as well), and Documents and Settings > XPMUser > fontconfig > cache for Windows XP.

The cache file is as cryptic as the VLC one, seems to use the same generator, but uses the cache-3 extension instead.

Troubleshooting Building Font Cache Issues

The most common problem related to the font cache is the repeated generation of the font cache, followed by crashes and hangs during the building of the cache.

VLC offers no option to disable font caching, at least not directly in the Windows client. Users who are experiencing issues with it should check the VLC directory under user to see if the font cache file is generated. If it is not it could be a rights issue or permission problem.

Deleting the contents of the cache directory to force the player to build the font cache again could resolve the issues as well. Several users have reported problems building the font cache if the AppData folder is stored on a network drive.

It is a bit different if MPlayer is concerned. SMPlayer for instance can pass parameters to MPlayer, and one of those parameters can be used to prevent the building of the font cache.

To test that press CTRL-P in SMPlayer to open the options. Switch to Advanced > Options for MPlayer and enter -nofontconfig in the Options field.

no font config
no font config

Some users may also need to change the subtitle display format. This is done by clicking on Subtitles > Font and colors. A click on Enable normal subtitles should resolve the issue.

A last resort is the use of a process monitor to see if a specific font cannot be loaded by the video player. Process Monitor is a free Microsoft tool that displays those information. The easiest way to use the program is to create a new filter for vlc.exe (or the name of the video player that is used on the PC) to see only the activity of that player.

Using portable media players

Another possibility is to make use of portable media players. This can be especially helpful in cases where the font cache file is not generated, or generated whenever a video is played.

The portable version of VLC is available here, a portable version of SMPlayer can be downloaded from the official project website.

Portable VLC will still generate a font cache, but it will be stored in the portable directory, not in AppData or another Windows system directory. This alone could resolve several of the issues users have with the building of the font cache.

The portable version of SMPlayer makes use of the -nofontconfig parameter so that the font cache is not build during usage.

Share your tips: Have you noticed the building font cache message in your video player? Let us know in the comments.

Advertisement

Previous Post: «
Next Post: «

Comments

  1. Mike Williams said on September 6, 2023 at 1:26 pm
    Reply

    Does that mean that only instrumental versions of songs will be available for non-paying users?

  2. Evan said on December 8, 2013 at 1:48 am
    Reply

    I am using SMplayer 0.8.6 (64-bit) (Portable Edition) on Windows 7 x64. Even with the -nofontconfig parameter in place SMplayer still scans the fonts. Also, I have enabled normal subtitles and it is still scanning fonts before playing a video. Also, it does this every time the player opens a video after a system restart (only the fist video played).

  3. Ted said on October 22, 2010 at 3:57 am
    Reply

    Try running LC with administrator privileges. That seemed to fix it for me

  4. Kishore said on August 15, 2010 at 12:39 pm
    Reply

    @ Javier, The trick i posted will show up subtitles too. If not,Dont worry, VLC is currently sorting out this issue and the next version will be out soon.

    No probs @ Martin !! Its my pleasure

  5. Kishore said on August 15, 2010 at 12:38 pm
    Reply

    @ Javier, The trick i posted will show up subtitles too. If not,

  6. javier said on August 14, 2010 at 1:50 pm
    Reply

    @Kishore, I’ll try your tips, but does this mean it will no longer show subtitles either?
    I do use subtitles, but the fontcache dialog box pops up (almost) everytime I play a file.

    Could this be related to the fonts I have installed? Or if I add/remove fonts to my system?

    I’ll try to do a fresh install also, if your tips does no work. I’ll post back here later…

    /thanks
    /j

  7. Kishore said on August 13, 2010 at 2:55 pm
    Reply

    Error:
    Buidling font Cache pop-up

    Solution:

    Open VLC player.

    On Menu Bar:

    Tools
    Preferences

    (at bottom – left side)
    Show settings — ALL

    Open: Video
    Click: Subtitles/OSD (This is now highlited, not opened)
    Text rendering module – change this to “Dummy font renderer function”

    Save
    Exit

    Re-open – done.
    Progam will no longer look outside self for fonts

    Source – WorthyTricks.co.cc

    1. Martin said on August 13, 2010 at 3:10 pm
      Reply

      Great tip, thanks a lot Kishore.

  8. myo said on August 1, 2010 at 5:52 pm
    Reply

    yes, yes, i have the same problem. sometimes, VLC crashes when it is playing .mov file.

  9. Mike J said on August 1, 2010 at 2:58 pm
    Reply

    Huh, I have never even seen this “font cache” pane; videos play at once for me, using VLC & XP SP3.

    1. Martin said on August 1, 2010 at 3:39 pm
      Reply

      Mike, in theory this should have only been displayed once to you, at the very first video that you played with VLC. The time this window is displayed depends largely on the number of fonts in your font directory.

      1. Mike J said on August 2, 2010 at 2:30 pm
        Reply

        huh, I lucked out for a change?? Amazing!!
        Apparently VLC keeps this info through version updates, but I didn’t see this message after a fresh OS install about 8 weeks ago, & a new VLC.

  10. Anonymous said on August 1, 2010 at 12:43 pm
    Reply

    Why not make use of the mplayer.conf?

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

We love comments and welcome thoughtful and civilized discussion. Rudeness and personal attacks will not be tolerated. Please stay on-topic.
Please note that your comment may not appear immediately after you post it.