Bug 59659

Summary: setPropertyValue() method does not work for Japanese text
Product: LibreOffice Reporter: Aleksandr Drozd <alexander.drozd>
Component: sdkAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED NOTABUG    
Severity: normal    
Priority: medium    
Version: 3.6.2.2 release   
Hardware: x86-64 (AMD64)   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:

Description Aleksandr Drozd 2013-01-21 12:47:36 UTC
Simple macro that changes text properties is working on european symbols (checked on Russian and English)
but leaves Japanese text unchenged 
here is a code of a macro in Python, it changes font height for selected are :
-----
def test(dummy = ''):
    doc=XSCRIPTCONTEXT.getDocument()
    xController = doc.getCurrentController()

    xIndexAccess = xController.getSelection()
    count = xIndexAccess.getCount()
    i = 0
    while i < count:
        xTextRange = xIndexAccess.getByIndex(i)
        xTextRange.setPropertyValue("CharHeight", 20)
        i += 1
    return None

g_exportedScripts = test,
-----
if both English and Japanese is selected, only English letters change size.
Comment 1 Aleksandr Drozd 2013-01-21 12:59:11 UTC
tested on MacOS 11.4.2 - the same problem
Comment 2 Urmas 2013-01-22 08:29:59 UTC
Use CharHeightAsian if you deal with hieroglyphic text.