Jump to content

[SOLVED] calling the pre installed fonts from server


bobinindia

Recommended Posts

just use css in the variable keep her simple man

 

 

$font="style='font-family:veranda;'";

 

 

if the font is installed on the server you don't need to do anything but call it with css.. granted keep in mind that not everyone has the font you have and thus it won't always work for them.

Link to comment
Share on other sites

As far as I know, there's no way to access those.  Nor do your server's fonts really have anything to do with what's being displayed to the user in their browser. You specify the font with html or css.  If the user has it on their computer, it will be rendered properly.  If they do not, any number of unexpected things could happen.  If your lucky, the browser will just default to arial or something.

Link to comment
Share on other sites

I am talking GD

I need to create font previews on the fly as they include the text of the user.

If i have an installed font in a folder on the server it is fine.

My problem is getting the classic fonts as ttf files or accessing them from my server with the assumption that they are available.

Link to comment
Share on other sites

I tried that and the two people I spoke to weren't very together!!

I'm sure I'll do better in this forum!

 

<?php 
$bbox = imagettfbbox($size,0,$font,$txt);
//$font can be Verdana, Times New Roman, Comic Sans and Century. Very common fonts.
?>

Link to comment
Share on other sites

They really don't know their stuff. (My hosting company)

I tried a few sites to download the ttf files but i can't find fonts like Verdana, Times New Roman, Comic Sans and Century. The only ones I need actually. Thousands of others are available.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.