Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Embedding fonts

View Parsed - Show only message text

Path: g2news1.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!logbridge.uoregon.edu!feed3.jnfs.ja.net!feed4.jnfs.ja.net!jnfs.ja.net!news.gla.ac.uk!ppepc56.ph.gla.ac.uk!flavell
From: "Alan J. Flavell" <flav...@ph.gla.ac.uk>
Newsgroups: comp.infosystems.www.authoring.site-design
Subject: Re: Embedding fonts
Date: Tue, 8 Nov 2005 23:37:41 +0000
Organization: University of Glasgow
Lines: 68
Message-ID: <Pine.LNX.4.62.0511082309330.24510@ppepc56.ph.gla.ac.uk>
References: <k5Cdna9UHbJiVqPeRVn-pA@speakeasy.net> <3qb5c8Fe6bdsU1@uni-berlin.de>
 <Pine.LNX.4.62.0510022345350.29402@ppepc56.ph.gla.ac.uk> <3qejfnFejb0oU1@uni-berlin.de>
 <43422032$0$19767$5a62ac22@per-qv1-newsreader-01.iinet.net.au>
 <3qep4eFeek59U1@uni-berlin.de> <434323cb$0$19793$5a62ac22@per-qv1-newsreader-01.iinet.net.au>
 <3qj19rFf550jU1@uni-berlin.de> <Pine.LNX.4.62.0510052345450.30408@ppepc56.ph.gla.ac.uk>
 <3qqqcfFga2rjU1@uni-berlin.de> <Pine.WNT.4.64.0510101946500.1988@ZORIN>
 <3r0naqFh7hkoU1@uni-berlin.de> <3r0o9dFgm4r7U1@uni-berlin.de>
 <Pine.LNX.4.62.0510111100110.8999@ppepc56.ph.gla.ac.uk> <3r3amkFhjuhuU1@uni-berlin.de>
 <Pine.LNX.4.62.0510121537470.8999@ppepc56.ph.gla.ac.uk>
 <Pine.LNX.4.62.0510122308110.27072@ppepc56.ph.gla.ac.uk> <3r5rmvFhrrmsU1@uni-berlin.de>
 <Pine.LNX.4.62.0510130830160.2341@ppepc56.ph.gla.ac.uk>
 <Pine.LNX.4.62.0510131021200.8999@ppepc56.ph.gla.ac.uk> <3tcknfFrn7l7U1@uni-berlin.de>
NNTP-Posting-Host: ppepc56.ph.gla.ac.uk
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=ISO-8859-1
Content-Transfer-Encoding: 8BIT
X-Trace: singer.cent.gla.ac.uk 1131493064 10755 194.36.1.156 (8 Nov 2005 23:37:44 GMT)
X-Complaints-To: newsmaster@gla.ac.uk
NNTP-Posting-Date: 8 Nov 2005 23:37:44 GMT
In-Reply-To: <3tcknfFrn7l7U1@uni-berlin.de>
X-antiSpam: Do not send me unsolicited commercial email

On Tue, 8 Nov 2005, Gérard Talbot wrote:

> I think I found a way to go around this issue... sort of. You can 
> ask WEFT to analyze the webpage and then figure out the characters 
> which will be needed from which fonts.

Indeed you can, in fact that's how WEFT is *supposed* to work, but at 
my first attempt (with this Unicode range, which post-dates the latest 
WEFT version, 3, that I found) it hadn't seemed to be working. 

> > I've kludged up the following URLs, using material
> > from my normal unicode test area, to help in diagnosing the situation: 
> > http://ppewww.ph.gla.ac.uk/~flavell/tests/unidata14.htm8
> > http://ppewww.ph.gla.ac.uk/~flavell/tests/unidata15.htm8

Really, those are of no further use now, as they reference the
incomplete downloadable font which I was testing.  But if you still 
want to see how far I got...

> If you could change the file extension to html, I would try this 
> feature.

Sorry, I don't understand why that's a problem? "htm8" is just a local 
server convention for getting the server to advertise utf-8 encoding.  
Well, alright: try the same URLs ending in .html (which will be served 
with the page encoding advertised as iso-8859-1) or ending in 
.utf8.html , whichever appeals to you.  I've symlinked these 
alternative URLs in the /tests/ subdirectory.

But as soon as they have fulfilled this purpose I'd expect to remove 
them, as you have already achieved better results.

> http://www.gtalbot.org/DHTMLSection/AboriginalSerifDemo.html
>
> ABORIGI4.eot and ABORIGI5.eot are 25KB each and holding 19 
> characters each.
> 
> WEFT was able to analyze the webpage and then figure out the required
> characters from the Aboriginal Serif font.

Well done.
 
> On a different note, I downloaded Pigiarniq font from
> http://www.gov.nu.ca/Nunavut/English/font/
> and couldn't figure out where the Inuktitut characters were.

SIL Viewglyph shows them to be in their proper place, U+14xx and 
U+15xx, I'm relieved to say.  There's some other glyphs in the PUA 
(U+E002, U+E008, U+F7xx etc.) but your sample doesn't seem to make any 
use of them - which is good in terms of web compatibility.

> So I let Weft figure this out:
> 
> PIGIARN1.eot is 17.2KB
> 
> http://www.gtalbot.org/DHTMLSection/PigiarniqSerifDemo.html

So, both of your test pages are displayed OK here on Mozilla (when I 
have appropriate fonts available locally), and on IE6 using the 
downloaded font (even when I haven't got a suitable font available 
locally).  Good stuff.

If/when I get a bit of spare time, I'd like to understand why that 
didn't work for me, because you don't seem to be describing anything 
different than what I was trying myself.  But well done, anyway.  You 
going to write this up somewhere as a how-to?

cheers

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google