61 views
in GUI Development by
Hi,

How can we able to change the font size of Chinese characters independently.

Currently it is taking the font size of text editor. I need to give a separate font  resource for pinyin.

I need to give the font used in keyboard for the pinyin layout also.

Also how can we able to change the size of pinyin layout?

2 Answers

0 votes
by
Hi mvg,
please let me know which version of pinyin module you are using.
by
extendedvirtualkeyboard-1.08.00.draft
0 votes
by

Hi,

to set a different font resource at the pinyin preview you can set at the property 'font' inside PinyinInput::CharacterPreviewClass your font ressource. Make sure that it does not get overwritten anymore by the texteditor font by removing:

font = context.Font;

from PinyinInput::CharacterPreviewClass.onEvent.

You can change the layout of the pinyin preview inside the composer of PinyinInput::CharacterPreviewPinyinAndKeyboardClass. Some bounds might be aligned programmatically so please also have a look at the functions there especially UpdateViewState(). The property 'InputPreviewOffset' inside ExtendedVirtualKeyboard::Keyboard controls on which height the pinyin preview gets displayed.

One warning about adding a lot more font resources that also contains huge font ranges like those chinese character. Those can need a lot of flash memory. If this resource is limit on your target hardware, its always a good idea to check the build report and check whether the gui can fit into the flash of your target.

Best regards,

Julian

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...