all groups > dotnet internationalization > november 2005 >
You're in the

dotnet internationalization

group:

Uniscribe & TextRenderer


Uniscribe & TextRenderer Lloyd Dupont
11/27/2005 12:00:00 AM
dotnet internationalization:
I have written m own "RichTextView" using Uniscribe.
Now I see there is a new text rendering class: SWF.TextRenderer.

I haven't tested it out yet but it seems interesting.

However I see a couple of issues with it:
1. It doesn't gives me bidi "run" layout information so I have to call
uniscribe to get that
2. It only gives me string width, if I want to wrap my text around some
boundary I have either to call MeasureText repitively or I have to use
Uniscribe again
3. It doesn't gives me cluster boundary for caret placement
4. If I render unsuported char/glyph I don't know which kind of font fall
back mechanism it uses so I'm not sure my measurement (which I should do
with Uniscribe for reason 1,2,3) will fit the new drawing.

Is there any plan to improve these issues?

Re: Uniscribe & TextRenderer Michael (michka) Kaplan [MS]
12/6/2005 3:21:07 PM
I talk about this a little bit here:

http://blogs.msdn.com/michkap/500485.aspx


--
MichKa [Microsoft]
NLS Collation/Locale/Keyboard Technical Lead
Globalization Infrastructure, Fonts, and Tools
Blog: http://blogs.msdn.com/michkap

This posting is provided "AS IS" with
no warranties, and confers no rights.


[quoted text, click to view]

Re: Uniscribe & TextRenderer Michael (michka) Kaplan [MS]
12/6/2005 5:18:23 PM
There is no context that I am aware of that would explin how the
PrintPreview issue you refer to relates to the TextRenderer.


--
MichKa [Microsoft]
NLS Collation/Locale/Keyboard Technical Lead
Globalization Infrastructure, Fonts, and Tools
Blog: http://blogs.msdn.com/michkap

This posting is provided "AS IS" with
no warranties, and confers no rights.



[quoted text, click to view]

Re: Uniscribe & TextRenderer Michael (michka) Kaplan [MS]
12/6/2005 7:09:37 PM
Probably best to let your other thread carry this issue, all thing
considered?

The TextRenderer just uses Uniscribe, so there is nothing
TextRenderer-specific here.



[quoted text, click to view]

Re: Uniscribe & TextRenderer Lloyd Dupont
12/7/2005 9:56:17 AM
hoho...
I see.....

And what about my printing issue :-(
(PrintPreview doesn't work at all!! and Print space coordinate is scaled by
3 (not 96 / 300))

Anyway I'm about to give a try to paint with the TextRenderer instead of
ScriptTextOut.
Hoping it might solve the print preview issue...

"Michael (michka) Kaplan [MS]" <michkap@microsoft.online.com> wrote in
message news:OzXf4ur%23FHA.904@TK2MSFTNGP10.phx.gbl...
[quoted text, click to view]

Re: Uniscribe & TextRenderer Lloyd Dupont
12/7/2005 12:48:50 PM
Forget about the text renderer.
PrintPreview is not working at all if I use ScriptTextOut to render text.


Also, wether using Print Preview and/or Print, and wether using
ScriptTextOut and/or TextRenderer the text (GDI/ScriptTextOut rendered) is
scaled compare to other GDI+ rendering on the printer.


"Michael (michka) Kaplan [MS]" <michkap@microsoft.online.com> wrote in
message news:u3qOcws%23FHA.2452@TK2MSFTNGP11.phx.gbl...
[quoted text, click to view]

Re: Uniscribe & TextRenderer Lloyd Dupont
12/7/2005 8:28:12 PM
oki doki ;-)

"Michael (michka) Kaplan [MS]" <michkap@microsoft.online.com> wrote in
message news:O63Elut%23FHA.740@TK2MSFTNGP11.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button