Go4Expert

Go4Expert (http://www.go4expert.com/)
-   JavaScript and AJAX (http://www.go4expert.com/forums/javascript/)
-   -   Font Style, Character Tracking and Anti-Aliasing in HTML (http://www.go4expert.com/forums/font-style-character-tracking-anti-t23658/)

bananow 24Oct2010 23:22

Font Style, Character Tracking and Anti-Aliasing in HTML
 
Hi everyone,
I have a question concerning text formatting in HTML. I am a newbie in webdesign so I wanted to ask, if it is possible to somehow set the font style, character tracking and the anti-aliasing method in HTML or perphaps CSS. If so, how? I created my web design in Photoshop where it is possible to set these values, but I am not sure about HTML.
Thank you in advance

Tomas

pein87 18Jan2011 10:15

Re: Font Style, Character Tracking and Anti-Aliasing in HTML
 
for fonts use

font-family: ariel;

@font-face { font-family: ariel; src: url('http://font.com/font.ttf'); }

You cant get the string length(number of characters in a string without using javascript.

var textChar = document.getElementById('myDiv').innerHTML.length;

not sure on the other part though.

kumarpyasa 22Mar2011 15:36

Re: Font Style, Character Tracking and Anti-Aliasing in HTML
 
Hi dear
for fonts use
<font face="Monotype Corsiva" size="4" font color="red">kumar pyasa</font>


All times are GMT +5.5. The time now is 12:12.