views:

967

answers:

2

Some fonts have a large amount of whitespace above and below the characters. Is there a way to correct for that, and tighten up the space between lines of a word-wrapped paragraph in WPF (in either a TextBlock or a FlowDocument)? Kind of like a negative margin between lines?

There's a LineHeight property on Paragraph and TextBlock, but it only seems to let you increase the spacing -- if you set it to a smaller value than the default, it's simply ignored.

A: 

See this question.

There are several different ways to fix the height. The one that worked for me is this which sets the margin to 0.

David Basarab
That's for spacing between paragraphs. I'm asking about spacing between lines within a paragraph.
Joe White
+3  A: 

Set the Line Height like before, but change the LineStackingStrategy to BlockLineHeight

Joel