Skip to main content

Microsoft Silverlight

No more external font resources with RC0?RSS Feed

(0)

adler
adler

Member

Member

45 points

24 Posts

No more external font resources with RC0?

According to Pete Brown's blog:

"Any embedded fonts now need to be compiled in as resources in your project rather than kept external to the assemblies."

 I haven't been using fonts embedded in the .xap. I have a series of small apps/pages, each separate, but a single project. I want to have several fonts available--total file size is about 300K. Embedding these into every single .xap isn't really feasible since that would increase the download time considerably. Up until now, I kept the fonts in a separate folder and pointed to them.

Now, that doesn't work. Does this new change mean you have to embed all fonts and make them "resource"s? Is there any way to keep the fonts central?

codebased
codebased

Participant

Participant

806 points

360 Posts

Re: No more external font resources with RC0?

Idea

Idea would be just to download the font for the first time through the Syste.Net.Webclient and once it has been downloaded you can use it in any .xap file. 

"If I've answered your query then please mark it as "Answered".

adler
adler

Member

Member

45 points

24 Posts

Re: No more external font resources with RC0?

OK, that would work. But is that still compatible with using styles in app.xaml? I have an app that is essentially a stub, and then loads a "page.xaml" and "app.xaml" (of sorts) depending on who you are. If I have to set the fontfamily in my C# code, then I can't really keep the styles separated. Different xaml sets have different textblocks using different fonts, so I would have to have to download all of them and find some way to read through the xaml and assign them properly.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities