[Xerte] Embedded fonts and super/sub script
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Fri Dec 18 11:32:27 GMT 2009
LaTeX might also be of assistance: Xerte uses a third party service to
dsisplay LaTeX. Try
<tex src="e=mc^2">
in a text icon.
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: Thursday, December 17, 2009 3:25 PM
To: Xerte discussion list
Subject: RE: [Xerte] Embedded fonts and super/sub script
I don't think those characters are in the font - I think it's the
browser's rendering that handles the <sub> / <sup> using the normal
characters.
There are some free fonts out there for sub / sup:
http://blog.ggshow.com/index.php/reference/2007/04/19/how_to_use_subscri
pt_aamp_superscript_in
Embed those with frutiger in the resources.swf. Then you can
(conveniently) do
Here is a test<font face="GGSUPERS">here is another</font>and here is
<font face="GGSUBSCR"> more</font>. You might want to do some preparsing
and replace <sub> in you code with the gribbly <font face="GGSUPERS">
etc.
Why the flash player cannot handle this natively is a real pain.
Make sure the ttf files have a lowercase .ttf - the fonts are
GGSUPERS.TTF when you download 'em and Xerte is obviously looking for
.ttf in amongst the files for the resources.swf.
J
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: Thursday, December 17, 2009 3:05 PM
To: Xerte list
Subject: [Xerte] Embedded fonts and super/sub script
With a hand from JT, I've managed to get embedded fonts (in this case
Frutiger Linotype) and css with custom tags working together. I'll post
the details for the archives once I get this last bit addressed.
Now, if I open Frontpage and use Frutiger as the font, I can
subscript/superscript, so I assume the Frutiger Linotype has the ss/sp
fonts in there.
I have embedded that font in resource.swf, and it appears as expected.
But I am not sure how to proceed as far as defining a character within
Xerte such that it uses the ss/sp.
Flash (and hence Xerte) does not support the <sup>, <sub> tags, so how
do we invoke them?
Cheers,
Dave
________________________________
Hotmail: Trusted email with powerful SPAM protection. Sign up now.
<http://clk.atdmt.com/GBL/go/177141665/direct/01/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20091218/2be46ac8/attachment.html
More information about the Xerte
mailing list