Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Font Bug?

edited September 2014 in Help! with 1.x
Hi all,
http://www.dafont.com/gothic-pixel.font
Tried unsuccessfully uploading this font into Twine with:
[quote] .passage {
    font-family: "gothic_pixel", sans-serif;
  }

I've tested this with other fonts and they work fine. No idea why. I've tried Chrome/Firefox but it's not appearing and the font import file is a .tff

Comments

  • I tested that font using the fontsquirrel webfont generator and it says that the font is corrupted.
    This may be why the same font imported into Twine using the Story > Import Font feature does not work when applied to passage text.
  • Thanks greyelf, though I don't see why it would be corrupted. I am able to use the font within word docs with the same file.

    I've just tried a few other free fonts online and a number also seem to not work. I'm guessing there are certain kinds of fonts (nothing to do with whether they are .tff etc) that, for some reason I can't discern, do not work with Twine despite functioning as fonts.
  • Commissar wrote:
    I'm guessing there are certain kinds of fonts (nothing to do with whether they are .tff etc) that, for some reason I can't discern, do not work with Twine despite functioning as fonts.

    Twine tries to make the font a "webfont" (one that can be used by CSS), this is also what the fontsquirrel website is also trying to do. My guess is that something about the font makes this impossable.

    I found a way to get around the problem is to first use this website to convert the font from TFF into WOFF and then to import the new gothic_pixel.woff file into your Twine story instead.

    The following example worked for me.
    (note: I am using TWEE formatting for the example and have excluded the gothic_pixel passage as it is too large)

    :: Stylesheet [stylesheet]
    .gothic {
    Font-Family: "gothic_pixel", sans-serf;
    }

    :: Start
    The following text should appear in Gothic Pixel.

    @@.gothic;The quick brown fox jumped over the lazy dog.@@
    I hope this helps.
  • Thanks greyelf this totally worked. Is there something that we could contribute to the wiki from this? Hopefully anyone having problems with fonts may see this thread otherwise.
Sign In or Register to comment.