Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

GlyphRun, problem with Tab Key rendering

$
0
0

Hello, I have a problem with rendering tab-key in GlyphRun.

Here is example:

ushort glyphIndex = glyphTypeface.CharacterToGlyphMap[temp[n]]; // Here I have error because when temp[n] is '\t' then this char is doesn't exist in this map(CMAP?)

GlyphIndexes.Add(glyphIndex);

double width = GlyphTypeface.AdvanceWidths[glyphIndex] * FontSize;

AdvanceWidths.Add(width);

So, how to render something that does not exist?


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>