Hi Alan,

On 10/29/07 12:29, Alan Yaniger wrote:

OOo uses the default Western font for digits, even when those digits are embedded in CTL text. Since most Hebrew fonts contain digits, it is often bothersome for Hebrew users to see their font unnecessarily change in mid-sentence for digits. I would like to change this, so that if the active CTL font supports digits, they will be displayed in the CTL font. Where is the code that currently sets the font for digits to the Western font? I'm asking about all OOo apps.

for Writer, have a look at SwScriptInfo::InitScriptInfo(). This function calculates the script types and directions for a paragraph. There is already some code in this function which takes care that Latin characters inside a RTL run use the CTL font.

For the EditEngine, I suggest to start debugging with a break point in ImpEditEngine::GetScriptType(). This should point you to the code.

Please note that changing this behavior might change the layout of existing documents, therefore you might want to consider to have a new compatibility flag at the document, at least for the Writer.

Best regards,

Frank

--
Frank Meies (fme) - OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to