| Summary: | setPropertyValue() method does not work for Japanese text | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Aleksandr Drozd <alexander.drozd> |
| Component: | sdk | Assignee: | 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: | ||
tested on MacOS 11.4.2 - the same problem Use CharHeightAsian if you deal with hieroglyphic text. |
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.