501 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 - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...