I am using a custom font which is installed on my PC but need to make it work over the web. Please share the possible ways.
Asked
Active
Viewed 120 times
0
-
You mean @font-face like this: http://fonts.googleapis.com/css?family=Revalia – Andrew Feb 27 '14 at 07:30
-
Or you could look into [Google Fonts](https://www.google.com/fonts) and see if your font (or something close to it) is there. – GreyRoofPigeon Feb 27 '14 at 07:30
-
ya thanks everyone i got it.. it works :) – prabhakaran Feb 27 '14 at 10:09
2 Answers
1
You can try the link below which is hosted by google :)
Which you can use like below
<link href='http://fonts.googleapis.com/css?family=Allura' rel='stylesheet' type='text/css'>
and styling your text like
.myAwesomeLookingTextEveryoneWillLaughAt { font-family: ‘Allura’, cursive; }
For more details, please visit the link.

Rey Libutan
- 5,226
- 9
- 42
- 73
-
So should I include how he can include the fonts in my answer? like the script src (which is yeah, available in the link but not just visible directly here). – Rey Libutan Feb 27 '14 at 07:34
-
2Okay, thanks! :) Atleast I am learning here. I'll edit my answer then. – Rey Libutan Feb 27 '14 at 07:37
1
Define fonts in your css with font location :
@font-face
{
font-family: myFont;
src: url(location/font.ttf);
}
then use it as p { font-family:myFont; }

Ashley Medway
- 7,151
- 7
- 49
- 71

Sushil Kandola
- 870
- 2
- 9
- 22