0 Favourites

Custom Font Problem

  • I have an .tff font file, i would like to know how to apply font effect.

    According this tutorial NEVER worked, so i don't know why

    http://www.scirra.com/tutorials/237/how-to-use-your-own-web-fonts/page-1

    <img src="http://i.imgur.com/0MQPLYe.png" border="0">

    <img src="http://i.imgur.com/9SKEcQD.png" border="0">

    That's all i can say WTF

  • Ashley please read this thread, i got no solution to use custom fonts since some months ago, please don't say me to use google webfonts.

  • I keep bumping this thread until it's fixed, i found no way to fix it

  • Here is a capx if that can help

    (I did just like the tutorial and it works for me)

  • Here is a capx if that can help

    (I did just like the tutorial and it works for me)

    @lemo I can't express how it did work for me, thanks!   <img src="smileys/smiley20.gif" border="0" align="middle">

  • Here is a capx if that can help

    (I did just like the tutorial and it works for me)

    Helped a lot! Thanks! <img src="smileys/smiley32.gif" border="0" align="middle">

  • Hi, this capx doesn't work for me on Chrome; either on my Vista home PC or my W7 work laptop. It just displays the standard font. In fact I can't get Chrome to display any Web fonts most of the time. It seems slightly better on Firefox but still will sometimes just not work. I'm finding fonts with C2 very frustrating, are there no alternatives to using Web fonts?

  • Hi, this capx doesn't work for me on Chrome; either on my Vista home PC or my W7 work laptop. It just displays the standard font. In fact I can't get Chrome to display any Web fonts most of the time. It seems slightly better on Firefox but still will sometimes just not work. I'm finding fonts with C2 very frustrating, are there no alternatives to using Web fonts?

    There an issue if you enable WebGL, it won't show custom font.

    Otherwise disable WebGL, it would work.

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • There an issue if you enable WebGL, it won't show custom font.

    Otherwise disable WebGL, it would work.

    Ah OK thanks. Although that means if I want effects and performance improvements then I'm stuck with using horrible standard fonts. Does anyone know if this is a C2 issue or a problem elsewhere? No way at all to use custom fonts and WebGL together?

  • SecondDimension They ignored me about this issue, please spread this bug report

  • I�ve found that, it�s not like that at all.

    If you have webGL enables, you don�t see custom webfont at the beginning, but try resizing the browser windows a couple of times and voil�, text boxes get their custom webfont.

    So, I�m not sure if this is a bug related to the webGL plugin or something else, but it�s really anoying not to be able to use custom webfonts with webGL enables.

    Maybe we can find a fix or at least, a patch.

  • add the custom font to your index.html aswel.

    It is because the layout is loaded but the body uses another font. This is a small CSS thing of inheritance. So it will use the standard font untill you change your canvas size by expanding or minimizing your browser window. Or you put it on the body so it get's auto loaded.

    I just did it for my game. undesign.be/X3

    open your html file when exported.

    add this line to your <head>

    ----------------------------------------------------------------

    <link rel="stylesheet" href="stylesheet.css" type="text/css" charset="utf-8" />

    ----------------------------------------------------------------

    Then add this to your Body{ } style

    ----------------------------------------------------------------

         font-family: <name of your font>;

    ----------------------------------------------------------------

    boom your font is there from the start of your game

  • It�s a quite clever workaround mrPeanut, thanks :).

    I didn�t think about the exported game, my problem is in the preview, but at least, we have a solution for the exported one :) (not sure what will happen when we export to exe for example).

  • thanks sirLobito.

    Also a .exe is not realy conform with the rules of web css. So it will probably use the predeterment font.

    As for preview do not set the font yet just type al lthe test in the font you want. And export implement the font. So you can set it right.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)