Fonts
Moderators: Big-O Ryan, Big-O Mark, Matt, jester22c
Fonts
Is there a way to show an uninstalled font on a webpage? Maybe link to the font file with a CSS script or something?
Axilla wrote:Since apparently no one has told you what a huge douche bag you are, I'll just tell you now. You are a huge douche bag. Huge.
- Plasma2002b
- Extreme Groupie
- Posts: 976
- Joined: Thu Jul 18, 2002 11:36 pm
- Location: Riverside, Ca
- Contact:
good old fashioned GD! ![:)](./images/smilies/icon_smile.gif)
basically, what you do is have your script (usually php) load the gd runtimes (must be installed on server) and make an image (jpg or png) and then send that image to the user's web browser.
The image made would be whatever you want with simply the text layed over it.... and you tell gd what font you want to use to make the text.
theres sooo much info about this stuff, but ill jsut stop here... cause maybe ya already know what im talkin about
![:)](./images/smilies/icon_smile.gif)
basically, what you do is have your script (usually php) load the gd runtimes (must be installed on server) and make an image (jpg or png) and then send that image to the user's web browser.
The image made would be whatever you want with simply the text layed over it.... and you tell gd what font you want to use to make the text.
theres sooo much info about this stuff, but ill jsut stop here... cause maybe ya already know what im talkin about
You can do it with CSS:
(Just replace "Times" with the name of your font.)
However, this way of doing it is a bit finicky. It doesn't work in all browsers on all platforms, and the file must be in .eot format (you'll have to use a conversion program to convert it).
Code: Select all
<style>
@font-face {font-family: Times; src:url(Times.eot)}
</style>
However, this way of doing it is a bit finicky. It doesn't work in all browsers on all platforms, and the file must be in .eot format (you'll have to use a conversion program to convert it).
- Plasma2002b
- Extreme Groupie
- Posts: 976
- Joined: Thu Jul 18, 2002 11:36 pm
- Location: Riverside, Ca
- Contact:
- Plasma2002b
- Extreme Groupie
- Posts: 976
- Joined: Thu Jul 18, 2002 11:36 pm
- Location: Riverside, Ca
- Contact:
- Plasma2002b
- Extreme Groupie
- Posts: 976
- Joined: Thu Jul 18, 2002 11:36 pm
- Location: Riverside, Ca
- Contact:
Who is online
Users browsing this forum: No registered users and 1 guest