locked
Space between letters in Paragraph RRS feed

  • Question

  • Hello, any have the idea how to increase the space between letters in Paragraphs?

    Thanks a lot !!!

    Wednesday, March 21, 2007 2:49 PM

Answers

  • you could try using glyphs

     

    <FlowDocument>
    <Paragraph>
    <Glyphs

       UnicodeString       = "Wide Text!"
       Indices             = ",150;,100;,100;,100;,100;,100;,100;,100;,100;"
       FontUri             = "file://c:/windows/fonts/times.ttf"
       Fill                = "Black"
       FontRenderingEmSize = "40"
    />

    </Paragraph>
    </FlowDocument>

    Wednesday, March 21, 2007 3:23 PM

All replies

  • you could try using glyphs

     

    <FlowDocument>
    <Paragraph>
    <Glyphs

       UnicodeString       = "Wide Text!"
       Indices             = ",150;,100;,100;,100;,100;,100;,100;,100;,100;"
       FontUri             = "file://c:/windows/fonts/times.ttf"
       Fill                = "Black"
       FontRenderingEmSize = "40"
    />

    </Paragraph>
    </FlowDocument>

    Wednesday, March 21, 2007 3:23 PM
  • Thanks Lester. But the problem is that the text is dynamic. Is there any easy way to set space between letter ?

    Thanks a lot !

     

     

    Wednesday, March 21, 2007 6:04 PM
  • The first version of WPF does not provide control over inter letter spacing, and you are correct, Glyphs element cannot be used for the general purpose output of dynamic text.

    Could you please let us know why this functionality is needed in your scenario? Is it possible to use a font that natively supports stretch values higher than normal?

    Thanks,
    Mikhail Leonov - MSFT

    Wednesday, March 21, 2007 6:48 PM
  • Hello Mikhail, thanks for your answer. I've a FlowDocument with data from a webservice. I've diferents styles to the paragraphs. And the problem is that the font is rendering with very small spacing. I need to increase that space.

    Thanks a lot !

    Wednesday, March 21, 2007 7:18 PM
  • Euclidez,
    what FontFamily are you using to render the document?

    Perhaps the font itself has glyph metric values that are too small.

    Best regards,

    Mikhail Leonov - MSFT

    Thursday, March 22, 2007 5:26 PM