Zero to Hero: Using the Browser Cache in Silverlight Tags: Silverlight Technorati Tags: Silverlight   You may be using the Silverlight downloader object to download content such as fonts but you may have noticed that every page needs to download the resources seperately, making for poor UX. Well the results of the downloader object can be easily cached, so that subsequent pages can access…


Zero to Hero: XAML from the ground up Tags: Silverlight   Technorati Tags: Silverlight      In the last Episode, you looked into Getting Started with Silverlight where you had a simple XAML document containing a TextBlock that you then manipulated in code. XAML is at the heart of Silverlight. You use it to define your user interface layout, interactions, animations and more….


Silverlight: Font Embedding

There’s some great stuff been put together by Slyi on his blog around subsetting and embedding fonts. You’ve all been asking me lots of questions about it, but he answers it better than I ever could! Check it out at:!2B248D261D0E0035!122.entry   Thanks!


Silverlight: Convert Text to Path

The WPF APIs provide a FormattedText object that allows you to export its contents as a Geometry, which in turn allows you to generate its contents in the XAML Path Mini Language.  Here’s an example of a Web service that takes in the text, typeface, size and other parameters, loads them into a FormattedText, and uses…


Silverlight: Using Text from Unsupported Fonts

In Expression Blend you have the facility to convert text from a textblock into a XAML path. This then has no dependency on the original font, and the text will be rendered by Silverlight. So, for example here’s Expression Blend with some text written in Brush Script MT size 48.     With the TextBlock…


Chinese, and other International Text in WPF/E

For our friends in the international community, text rendering is possible by means of the Glyph tag. So, for example this XAML:   <Canvas x:Name=”GlyphDisplayCanvas” Canvas.Left=”0″ Canvas.Top=”0″ >       <Glyphs x:Name=”GlyphDisplay” Fill=”Black” FontUri=”./simhei.ttf”               FontRenderingEmSize=”48″ UnicodeString=”你好, 你好吗?” />   </Canvas> Will render Chinese text in WPF/E. Please note a couple of things:…