Hi Oliver,
Yes, GetScriptType() does in fact return Western when I type digits in
RTL context. I want that to happen, so that the text direction when
typing digits remains LTR. I want just the font to change to CTL, not
the text direction also. This is why in my patch at:
http://www.openoffice.org/nonav/issues/showattachment.cgi/58889/i81333.patch.tmp
in the function ImpEditEngine::SeekCursor(), I first call
GetScriptType(). Then I check if it's Western, but without alphabetic
chars or other Strong LTR chars, and if not, I change the font
properties. What I want is for the characters to be considered CTL only
regarding the font. That is happening, but apparently there's another
step I have to take to update the font box.
Alan
Oliver Specht wrote:
Hi,
the method that determines the current font name checks which script type is
active and then returns the font name that is set for this script type. Maybe
ImpEditEngine::GetScriptType() (svx/source/editeng/impedit2.cxx) returns
Western instead of CTL in the given situation.
Regards,
Oliver
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]