"...I know this is a C# blog, but I felt to do this post anyway....."
- Open your html file where you want the font to be displayed. If you have a different header file, open that instead. Use any text editor you preffer, Dreamweaver if opened will do the job to
<\ link rel="stylesheet" type="text/css" href="path/to/stylesheet.css" />
( take out the first backslash of the line above, blogger was hidding that line if I didn' t do that trick.)
Look at the name of the .CSS file referenced in the tag and open that file in your code editor. If you see no tag, create one and then create a blank .CSS file. - 2Add this at the top of your .css file@font-face {font-family: 'The name of the Font Family Here';src: URL('fontfile.ttf') format ('ttf');}Choose whatever font family you like, any word, just keep in mind you will have to remember it and reuse it, so choose anything easy.
- 3Below is how it is used:h1 {font-family: "Font Name Here", "Another Font", generic;}As you can see above, there are 3 types of fonts, that means that if there is any problems for the browser in trying to display that font, it will proceed with the following to the right, and so on and so on and so on....
- 4Remember that the stylesheet css header file only has a path to the .ttf file. That is why you HAVE to upload the .ttf file to the server where the .css file will look and make browsers download and use the font in the act.
Hope this helps.....(there are no pictures to guide you, cause of the lack of difficulty the guide has).
This comment has been removed by a blog administrator.
ReplyDeletecant read, looks horrible
ReplyDeletesorry for that... just copy and paste it with notepad.
DeleteI am very busy lately but I will do it asap..
thank you
very intersting
ReplyDeleteinteresting post i like your post.
ReplyDeleteThis is the crappest ever site i have seen about fonts - it's totally illegible, so you clearly know fuck all about typography. i am also deeply suspicious that you 'solved' programming problems - if this is your idea of a font-related solution, i would truly hate to see any actual code based solution you could come up with.
ReplyDeleteYou must be an offshore resource with this garbage
ReplyDelete