The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

what the best way to add a custom font in HTML page

View previous topic View next topic Go down

Solved what the best way to add a custom font in HTML page

Post by Michael_vx on July 27th 2015, 11:12 am

what the best way to add a custom font in HTML page to work even if the user dose not have the font installed on his OS
and to force the font i want to be in the page
with any way
thanks
Hello


Last edited by Michael_vx on July 27th 2015, 12:52 pm; edited 1 time in total (Reason for editing : Solved)

Michael_vx
Forumember

Male Posts : 655
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

Solved Re: what the best way to add a custom font in HTML page

Post by Ange Tuteur on July 27th 2015, 11:56 am

You can usually import a font with CSS, such as Font Awesome or Google Fonts for example. The domain the fonts are hosted on however, needs to be cross domain. Otherwise, the font cannot be imported to your forum from another website.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: what the best way to add a custom font in HTML page

Post by Michael_vx on July 27th 2015, 11:58 am

i want to custom a HTML page
and do you mind Explain a bit more

Michael_vx
Forumember

Male Posts : 655
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

Solved Re: what the best way to add a custom font in HTML page

Post by Ange Tuteur on July 27th 2015, 12:08 pm

Using google fonts for example, click "quick use" and it'll take you to a page with three codes. Since it's an HTML page you're using grab the standard link code and paste it in your head section.

Example :
Code:
<!DOCTYPE html>
<html>
  <head>
    <title>Page Title</title>
    <meta charset="UTF-8"/>
    <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'/>
  </head>

  <body>

  </body>
</html>

Then you can use the font in a inline <style> tag.
Code:
<style type="text/css">
body {
  font-family:'Open Sans', sans-serif;
}
</style>

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: what the best way to add a custom font in HTML page

Post by Michael_vx on July 27th 2015, 12:34 pm

i understand now Smile
thanks a lot
thanks words are not Enough
i still have much a lot to learn
thank you again
this topic is solved

Michael_vx
Forumember

Male Posts : 655
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

Solved Re: what the best way to add a custom font in HTML page

Post by Ange Tuteur on July 27th 2015, 1:10 pm

You're welcome ^^

Topic locked

Google fonts would be the best font serving site that I know of, but I'm sure there may be more if you look. Have a great day ! Smile

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2684
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum