XNA Creators Club Online
Page 1 of 1 (13 items)
Sort Posts: Previous Next

Issue using the Redistributable Font Pack

Last post 1/11/2008 8:22 PM by EKLynx. 12 replies.
  • 1/3/2008 12:35 AM

    Issue using the Redistributable Font Pack

    I installed the fonts as directed in the instructions.  I can test the fonts out in MS Word and Write, so I have verified they have installed properly.  However, when I create the fontsprite, then edit the XML file to use the "Miramonte" font I get a compile error:

    "The font family "Miramonte" could not be found. Please ensure the requested font is installed, and is a TrueType or OpenType font."

    Just to see if I edited the spritefont XML correctly, I changed the font to "Mangal" which was already installed on my system and it worked just fine.

    Any ideas about what the issue would be?

  • 1/3/2008 3:22 AM In reply to

    Re: Issue using the Redistributable Font Pack

    The only things that come to mind is that either you did not spell the font name correctly and with the proper case, or else perhaps you need to reboot your computer.
  • 1/3/2008 9:31 AM In reply to

    Re: Issue using the Redistributable Font Pack

    I've had problems with fonts too. Either a rebuild or closing the project and reopening it usually fixed it. I'm sure a reboot and rebuild probably would do the trick too. :)
    Jim Perry - Microsoft XNA MVP
    If people spent a minute searching the forums and reading the FAQs before posting I'd be out of a job.
    Got some XNA Game Studio/XNA Framework development info to share with the community? Put it on the XNA Wiki.
    Please mark posts as Answers or Good Feedback when appropriate.
  • 1/3/2008 11:59 AM In reply to

    Re: Issue using the Redistributable Font Pack

    Closing VC Express and re-openning did the trick.  I'm a little surprised by that.  Reminds me of yester-year when I had to reboot PC after installing anything.  I haven't closed down this instance of VC Express in probably 2 weeks.

    Thanks for the tips.
  • 1/3/2008 1:03 PM In reply to

    Re: Issue using the Redistributable Font Pack

    That's a System.Drawing quirk. It caches information about all the available fonts the first time you do any font related operations, and there doesn't appear to be any way to clear that cache, so you need to restart whatever app the System.Drawing assemblies are loaded into (in this case Visual Studio) in order for it to notice when new fonts have been installed.
    XNA Framework Developer - blog - homepage
  • 1/11/2008 3:17 AM In reply to

    Re: Issue using the Redistributable Font Pack

    I'm now having a similar issue. I've been using Miramonte just fine, I just created a new sprite font and want to use Miramonte Bold as well.

    I installed all the fonts at the same time, they exist in Windows\Fonts. Restarted VS2005, restarted computer, same thing.

    the exact error is:
    Error 1 The font family "Miramonte Bold" could not be found. Please ensure the requested font is installed, and is a TrueType or OpenType font.

  • 1/11/2008 1:03 PM In reply to

    Re: Issue using the Redistributable Font Pack

    I think you access the bold version by changing the Style element, not the FontName.
    XNA Framework Developer - blog - homepage
  • 1/11/2008 1:19 PM In reply to

    Re: Issue using the Redistributable Font Pack

    Tried that too.

    Building content threw NotSupportedException: Specified method is not supported.
    at Microsoft.Xna.Framework.Content.Pipeline.Interop.KerningHelper.GetCharacterSpacing(Char c)
    at Microsoft.Xna.Framework.Content.Pipeline.Processors.FontDescriptionProcessor.Process(FontDescription input, ContentProcessorContext context)
    at Microsoft.Xna.Framework.Content.Pipeline.ContentProcessor`2.Microsoft.Xna.Framework.Content.Pipeline.IContentProcessor.Process(Object input, ContentProcessorContext context)
    at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.BuildAssetWorker(BuildItem item)
    at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.BuildAsset(BuildItem item)
    at Microsoft.Xna.Framework.Content.Pipeline.BuildCoordinator.RunTheBuild()
    at Microsoft.Xna.Framework.Content.Pipeline.Tasks.BuildContent.RemoteProxy.RunTheBuild(BuildCoordinatorSettings settings, TimestampCache timestampCache, ITaskItem[] sourceAssets, String[]& outputContent, String[]& rebuiltContent, String[]& intermediates, Dictionary`2& dependencyTimestamps, KeyValuePair`2[]& warnings)
  • 1/11/2008 1:23 PM In reply to

    Re: Issue using the Redistributable Font Pack

    Really? I just built the bold version ok here.

    What OS are you on?
    XNA Framework Developer - blog - homepage
  • 1/11/2008 5:49 PM In reply to

    Re: Issue using the Redistributable Font Pack

    XP SP2
    XNA 2.0
    VS2005 Professional

    Xbox360 game project.
  • 1/11/2008 6:26 PM In reply to

    Re: Issue using the Redistributable Font Pack

    Weird: that's the exact same configuration I just tried it on. I have no idea what's going on here. I assume other bold fonts (Arial for instance) build ok?
    XNA Framework Developer - blog - homepage
  • 1/11/2008 8:18 PM In reply to

    Re: Issue using the Redistributable Font Pack

    Arial works in FontName="Arial", Style="Bold", not FontName="Arial Bold" (I'm assuming expected this way)

    Another of the fonts included in the dist (Pescadero) also lets me use Style="Bold" just fine.
  • 1/11/2008 8:22 PM In reply to

    Re: Issue using the Redistributable Font Pack

    OK, something must've corrupted the font. i just re-extracted and re-installed the Miramonte bold, and now it works fine. Wierd.
Page 1 of 1 (13 items) Previous Next