[Mono-dev] Graphics.MeasureCharacterRanges cannot handle newline characters.

Sebastien Pouliot 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:
> https://bugzilla.novell.com/show_bug.cgi?id=MONO82291
> 
> 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.

Sebastien



More information about the Mono-devel-list mailing list