0

How to change font family in zk9?

asked 2021-02-08 13:15:25 +0800

Sukkasem gravatar image Sukkasem
3 2

I want change component in all pages and link font from google font

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2021-02-17 09:22:52 +0800

hawk gravatar image hawk
2785 1 5
http://hawkphoenix.blogsp... ZK Team

updated 2021-02-17 09:26:03 +0800

Using link directive to link a google font in a zul.

If you just want to change the font for one or several components in the whole application, you can still override their built-in css like:

.z-combobox-input{
    font-family: yourFont;
}

If you want to change the font used in all components, it's better to build a custom ZK theme, please follow the readme in zkThemeTemplate. Then change the variable below to change all font family used in all components and produce a custom theme jar and include the theme jar in your project and switch to the custom theme:

@baseTitleFontFamily:          "Helvetica Neue", Helvetica, Arial, sans-serif;
link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2021-02-08 13:15:25 +0800

Seen: 5 times

Last updated: Feb 17

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More