-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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.
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.
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.
Yes, exactly.
Thank you, Samchuang :)
Asked: 2009-10-26 02:26:55 +0800
Seen: 981 times
Last updated: Oct 30 '09