[Mono-dev] Graphics.MeasureCharacterRanges cannot handle newline characters.
Stefanos A.
stapostol at gmail.com
Wed Nov 5 02:44:11 EST 2008
On Tue, 2008-11-04 at 19:13 -0500, Sebastien Pouliot wrote:
> 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).
I see, it's a major task for an unusual codepath.
> You can probably work around this bug by dealing the individual lines in
> your own code.
Worth a try (only difficulty is that the code shouldn't allocate on the
heap).
Thanks for the information.
More information about the Mono-devel-list
mailing list