logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > HTML and CSS
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 07-13-2013, 01:28 PM   #1
macaddict
 
Join Date: Jul 2013
Posts: 3
Default Using custom fonts in Dreamweaver

Hi all

I'm building my final site for my web design course exam but having looked at other sites around the web they're using fonts that are not part of the normal standard.
I've read that by putting some code into the header in CSS that you could use a custom font (as long as it's loaded to the server hosting the website) that will load before the actual site loads so everything looks as intended.

Hope this makes sense, still getting used to CSS.

Many thanks in advance if anyone can advise on this.
macaddict is offline   Reply With Quote
Old 07-14-2013, 01:50 AM   #2
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

you can embed a font by uploading it to your server and using
Code:
@font-face
{
font-family: myFirstFont;
src: url('Sansation_Light.ttf'),
     url('Sansation_Light.eot'); /* IE9 */
or
Code:
@import url(http://fonts.googleapis.com/css?family=Lato:300,400,700);
to use a font supplied by somewhere else, in this example google fonts
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 07-14-2013, 05:51 PM   #3
gentleone
gentleone's Avatar
 
Join Date: Nov 2009
Location: Rhodes, Greece
Posts: 2,837
Default

http://www.fontsquirrel.com/







...
__________________
www.gentlemedia.nl
gentleone is offline   Reply With Quote
Old 07-14-2013, 08:40 PM   #4
macaddict
 
Join Date: Jul 2013
Posts: 3
Default

Thanks for your replies guys, would I copy this into my style sheet that I've attached to my site?
macaddict is offline   Reply With Quote
Old 07-15-2013, 01:20 AM   #5
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

yes you can
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 07-15-2013, 07:16 PM   #6
domedia
Administrator
domedia's Avatar
 
Join Date: Dec 2003
Posts: 9,730
Default

Gentleone do you prefer fontsquirrel?
domedia is offline   Reply With Quote
Old 07-15-2013, 09:01 PM   #7
gentleone
gentleone's Avatar
 
Join Date: Nov 2009
Location: Rhodes, Greece
Posts: 2,837
Default

Quote:
Originally Posted by domedia View Post
Gentleone do you prefer fontsquirrel?
I don't like a service like Google Fonts cause it relies on JavaScript to load in the fonts from their server. It's also 1 extra HTTP request for each font if you do it like that and therefore I prefer to load it from my own or the clients' server. And Fontsquirrels' webfont generator is very useful to me.
__________________
www.gentlemedia.nl
gentleone is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:08 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com