Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Can't display "Wingding 3" font [modified]

Can't display "Wingding 3" font [modified]

Scheduled Pinned Locked Moved WPF
htmlwpfhardwarehelptutorial
1 Posts 1 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fjparisIII
    wrote on last edited by
    #1

    I need to display several characters from the Wingdings 3 font family. That's the name of the font family, not the name of the True Type font family file. What I did was copy the wingdng3.ttf file to my project root and made sure that its BuildAction was set to Resource. Then in my XAML I use this syntax to display a single character at the beginning of a TextBlock:

    <TextBlock
    Name="section1Title"
    >
    <Run FontFamily="WingDng3.ttf#Wingdings 3"></Run> Help on the tutorials
    </TextBlock>

    When displayed in my application, the wingding character appears as a square, just as in the above markup, but you'd expect that in the markup. But appearing as a square in the running Silverlight application indicates that the font family I chose for it was not located. What am I doing wrong? Edit: Upon further investigation I discovered that my "expectation" about the display of the markup was wrong. If the font can be displayed, it is displayed properly in the markup, at least in VS2010. Nevertheless, I still don't know how to get VS2010 to display an embedded font.

    modified on Tuesday, May 18, 2010 6:12 PM

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups