I'm attaching the file.
I imported a working compatible font (I've installed it to my OS and it's peachy).
If I have the font installed to my OS, it works, because it pulls it from there.
If I remove it and test the embedded version, it doesn't work.
I believe all my CSS is in order.
However believing doesn't seem to be good enough. XD
This seems so simple, but what am I doing wrong?
#customfont {
font-family:customtest;
font-size:24pt;
line-height:150%;
}
<span id="customfont">Why isn't this working?</span>
All styling is applied except for the font.
Comments
Also, just as a heads-up: two significant browsers do not render SVG fonts at all, at present.
So here's the affected font I referenced earlier (obviously not all of the code, it'd be huge). This seems to occur if the font contains spaces, but I can't be 100% sure.
Font family names with spaces in them work fine for me, in Firefox and in Konqueror's WebKit mode. Which browser are you using? In particular IE is a bit slow in picking up modern web features, for example in IE8 data URLs are limited to 32K, while most fonts will exceed that limit.
Attached.
In Firefox, if you right-click and choose Inspect Element from the context menu, the debugger is opened. In the debugger, click on the Console tab to see logging. I got the following error message in the log: So there is something inside the font file itself that Firefox doesn't like. I don't know anything about the insides of the TrueType format, so I have no idea what a 'vhea' table is. But in any case, the problem is either that the font file contains out-of-spec data or Firefox' font parser has a bug. Microsoft made a font validation tool; I haven't tried that myself (I don't run Windows), but it might help in figuring out whether it is the font or Firefox that is wrong here.
You could try importing the font in a font editor and exporting it as a new TTF file; that might cause some internal data structures to be recreated. Or try to find someone who knows how the TTF format works internally, for example on Stack Overflow a somewhat similar question was asked and it got detailed technical answers.
=font]http://twinery.org/wiki/frequently_asked_questions?s[]=font
Which states:
[quote]You should install the @import CSS code that it provides, instead of the Javascript or HTML code. Also, if you wish to use multiple fonts, you should, for convenience, add them all to a 'collection' while browing GFonts, and obtain the code specific to that collection.
Once the @import code is installed, you may use it in CSS or HTML as in the above.
And I've found the @importcode - In this case it's @import url(http://fonts.googleapis.com/css?family=Hammersmith+One);
But how do I actually install this in the Twine IDE? Do I put that code in some kind of file? Thanks.