how to embed custom font ?

fidy / 2012-11-25 18:40:15   

Hi every body!

Ok here's the deal :

I'am working on fontlab studio to create a new font :

fontlab.com/font-editor/fontlab-studio/

i'd like to call my custom font inside my indexhibit to be able to display it with the new font i made!

Is that a way to do that ?

I guess i'll have to upload my font somewhere in my webhost and then call it somehow...

(basically I can export the font in any format from fontlab)

Any ideas ?

thkx

arsondpi / 2012-11-25 18:59:23   

This is not related to Indexhibit but I'd use fontsquirrel.com or Cufon or any other web font embedding script.
Just search the web!

fidy / 2012-11-25 20:44:39   

i'll try using that typeface.js script

typeface.neocracy.org/

I keep you aware!

Vaska A / 2012-11-26 02:34:05   

I really need to make a plugin for this...

fidy / 2012-11-26 07:13:46   

Hi vaska!

I went a little bit through this and have some issues :

typeface.js seems to work but can only call "locally" the custom font.

  1. using that code (on index.php) :
  2. <script src="/ndxzstudio/plugin/typeface-0.15.js"></script>
  3. <script src="/ndxzstudio/plugin/whatever_regular.typeface.js"></script>

(just gave him the correct location of where i upload typeface.js files)

I can call the font wherever on the index page for precise purpuse :

  1. <div class="typeface-js" style="font-family: whatever">
  2.     here is some whatever font on the index.
  3. </div>

works pretty well but it can't go through the whole architecture.
(yeah that's right, this deserve a plugin)

but may the thing happen if we can call typeface.js somehow in the style.css ?

arsondpi / 2012-11-26 09:47:33   

Of course!!!
Just edit the style.css - for example:

  1. p { font-family: whatever; }

will get your paragraphs (p tags) in your custom font.
apply this to the body tag and it will work for your whole site.

mkvis / 2012-11-26 17:32:22   

I've added a custom font via the font squirrel script as well as google fonts. However it's only showing in Chrome, not the other browsers.

maikkleinschmidt.com/…

Any ideas?

arsondpi / 2012-11-26 20:48:55   

it works fine from my end for all three browsers I'm using...
try to refresh your page a few times - maybe there's a browser cache error...

This thread has been closed, thank you.