[Mono-dev] Graphics.MeasureCharacterRanges cannot handle newline characters.
sebastien.pouliot at gmail.com
Tue Nov 4 19:13:12 EST 2008
On Wed, 2008-11-05 at 01:36 +0200, Stefanos A. wrote:
> Already reported as #324960 for libgdiplus:
> We were planning to use MeasureCharacterRanges for accurate text layout
> in OpenTK, but were blocked by this bug (see attached screenshots).
> Unfortunately, there is no known cross-platform, fully managed
> workaround that allows us to position individual characters with kerning
> and grid-fitting.
> Any chances this will be fixed?
This is unlikely to be fixed any time soon (contributions are welcome).
Its part of the many little bugs in libgdiplus text support that
requires a major rewrite of this code (hopefully this time pango-based
with full i18n support).
You can probably work around this bug by dealing the individual lines in
your own code.
More information about the Mono-devel-list