0

What's default font family for zk applications and how can we change it?

asked 2009-10-26 02:26:55 +0800

baskaraninfo gravatar image baskaraninfo
536 2 2 9

updated 2009-10-26 02:27:21 +0800

I wants to know the default font family name which is used by zk applications.

We can set the font style to a component.
But, how can we set the font family to the whole application in a single place?

Am using zk 3.6.2 version.

Thanks.

delete flag offensive retag edit

5 Replies

Sort by ยป oldest newest

answered 2009-10-26 02:39:29 +0800

baskaraninfo gravatar image baskaraninfo
536 2 2 9

By overriding a component such like label, in the lang-addon.xml, I can able to set the font-family at one place.
But, in this way, I have to override all the components individually to set the font-family.

Is it the only way or there any better alternative to do the same?

lang-addon.xml code for reference:

<?xml version="1.0" encoding="UTF-8"?>
<lang-addon>
<component>
    <component-name>label</component-name>
    <extends>label</extends>
    <property>
        <property-name>style</property-name>
        <property-value>font-family: Tahoma,Arial,serif;</property-value>
    </property>
</component>
</lang-addon>

Thanks.

link publish delete flag offensive edit

answered 2009-10-27 07:35:16 +0800

samchuang gravatar image samchuang
4084 4

Hi ~~

It's sound you need change CSS Style, please refer
CSS Style

link publish delete flag offensive edit

answered 2009-10-27 23:55:14 +0800

baskaraninfo gravatar image baskaraninfo
536 2 2 9

Thank you, samchuang :)

I have been using Overwriting as mentioned in my previous post. I can also overwrite using style as you referred.
In these options, we need to specify the font-family for each and every component.

Hence, I thought, there may be some simple and easy solution to change the font-family in one place.
If there any better alternatives, please post it here.

Thanks.

link publish delete flag offensive edit

answered 2009-10-30 01:31:37 +0800

samchuang gravatar image samchuang
4084 4

Hi ~~

I found it !

I think use "Theme" is what you need

link publish delete flag offensive edit

answered 2009-10-30 02:10:02 +0800

baskaraninfo gravatar image baskaraninfo
536 2 2 9

Yes, exactly.

Thank you, Samchuang :)

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: 2009-10-26 02:26:55 +0800

Seen: 981 times

Last updated: Oct 30 '09

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