kanzi: how to set the font

Continue to talk about kanzi, but please detour if you think it is so easy


Speaking of fonts, it's not easy. There is font under text, and it's ok if you don't set it directly.


Yes, you can, then this project does not use this font, and use another one, what should I do, set it one by one? come on, i'm lazy


Let's talk about style today


First, create a new type style in the library, and then add a font attribute to this attribute in the attribute bar. Others can be added.

ok, added a style, how to add it to the screen and use it. It's very simple, click on the screen, add resource under context Resource, and add the style you just created. Use the one you added under the screen.

But if my hands are shaking and there are two styles under the screen, I don't know which one to use. Add the attribute Style yourself, and select ResourceID, but the premise is that you must add it to the local table.


It's really hard to write, if you have any questions, please point out

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325551276&siteId=291194637