Elxis CMS Forum

Support => General => Topic started by: ROUBOS on December 22, 2009, 02:10:48

Title: Adding your own font, and flags ?
Post by: ROUBOS on December 22, 2009, 02:10:48
Hi,
is it possible to add your own downloaded font to the site? Have the font embedded I mean, so that it actually shows regardless if the viewers have it installed on their system?

Also, I would like to change the flag icons to round ones for the language selection. Where do we change these image files?

thanks
Title: Re: Adding your own font, and flags ?
Post by: ks-net on December 22, 2009, 02:18:43
http://en.wikipedia.org/wiki/Embedded_OpenType
http://www.fontembedding.com/fonts-and-the-web/
http://www.fontembedding.com

wait for ccs3 ...noways  embed fonts are not  compatible with 50% of browsers out there.... as far as i know!

flags?
inside every language folder:
/language/french/french.gif
/language/greek/greek.gif ... etc.
Title: Re: Adding your own font, and flags ?
Post by: ROUBOS on December 22, 2009, 02:21:37
yes CCS3 you're right. Hate having to worry about all browsers out there :(

Thank you so much ;)
Title: Re: Adding your own font, and flags ?
Post by: ROUBOS on December 22, 2009, 03:16:45
can I use png instead of gif for the flags?
Title: Re: Adding your own font, and flags ?
Post by: ks-net on December 22, 2009, 03:43:35
you can just rename your png images to gif.. browsers are  much clever nowdays

or modify

modules/mod_language.php ... ~line 223
Quote
echo '<img src="'.$mainframe->getCfg('live_site').'/language/'.$langx.'/'.$langx.'.gif" border="0" alt="'.$langx.'" style="vertical-align:middle" />';
and then replace all gif flag images in every language folder with a png image
Title: Re: Adding your own font, and flags ?
Post by: ROUBOS on December 22, 2009, 03:44:32
thanks

just that png is much better than gif transparency