Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home for chromium.org
« Groups Home
Message from discussion Fwd: [crx] Re: Shipping a font with an extension?

Received: by 10.68.230.98 with SMTP id sx2mr2224769pbc.1.1335462520148;
        Thu, 26 Apr 2012 10:48:40 -0700 (PDT)
X-BeenThere: chromium-extensi...@chromium.org
Received: by 10.68.116.169 with SMTP id jx9ls3152901pbb.5.gmail; Thu, 26 Apr
 2012 10:48:29 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.68.138.230 with SMTP id qt6mr329588pbb.12.1335462509472; Thu,
 26 Apr 2012 10:48:29 -0700 (PDT)
Authentication-Results: ls.google.com; spf=pass (google.com: domain of
 devinrho...@gmail.com designates internal as permitted sender)
 smtp.mail=devinrho...@gmail.com; dkim=pass
 header...@gmail.com
Received: by to5g2000pbc.googlegroups.com with HTTP; Thu, 26 Apr 2012 10:48:29
 -0700 (PDT)
Date: Thu, 26 Apr 2012 10:48:29 -0700 (PDT)
In-Reply-To: <9a5be82b-48b3-4a5e-b914-dc7ea8272dc0@u7g2000yqc.googlegroups.com>
References: <05860b6f-b9aa-415d-813a-fdb61b13b3be@r32g2000yqj.googlegroups.com>
 <CANwZ6pnBgh+UfMEfd4TKZ3PLjwcCYT4B2tYwNoE-STCRvc1i9g@mail.gmail.com>
 <b5d1bb8f-dad7-4e15-872f-aa1ef313cc6c@t2g2000pbl.googlegroups.com>
 <102ae7d9-0202-48c8-bd30-97e97ee5335e@v1g2000yqm.googlegroups.com>
 <b3258235-0f9b-4af3-8d57-7c7d77f9e6cb@m13g2000yqi.googlegroups.com>
 <CANwZ6pk=bGVf+O+yPa2nvhhALeu5aVWVqv6fmMTn0_RsO-yRfA@mail.gmail.com>
 <CACQF6M+h_iDRM4F4pjvRmi8u24LLt1WrpOGPse8YWxFV8RE=vw@mail.gmail.com>
 <CACQF6MKZW7eQssPuFHQOAaa12ZnxRXZvshG7N=kERAmGC4t92Q@mail.gmail.com>
 <582448a0-f95a-4154-895e-0a805c75a2dc@r9g2000yqd.googlegroups.com> <9a5be82b-48b3-4a5e-b914-dc7ea8272dc0@u7g2000yqc.googlegroups.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3)
 AppleWebKit/536.9 (KHTML, like Gecko) Chrome/20.0.1115.1 Safari/536.9,gzip(gfe)
Message-ID: <1050c96c-661d-45bd-8c4e-8dc36a1a5f73@to5g2000pbc.googlegroups.com>
Subject: Re: Fwd: [crx] Re: Shipping a font with an extension?
From: Devin <devinrho...@gmail.com>
To: Chromium-extensions <chromium-extensi...@chromium.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Well that's lame and stupid - there is no reason being local should
cause any change... maybe fiddle with some un-suspecting parts so
you're using the same format/file extension as your local font file.

Thanks for the acknowledgment!


On Apr 26, 10:15=C2=A0am, Ziyuan Yao <yaoziy...@gmail.com> wrote:
> To see how Chrome for Linux renders Web fonts incorrectly, here is an
> example:
>
> In my Chrome 18 in Fedora 16 64-bit, with chrome_pie-CharisSILW.zip,
> googling [ bread ] will return a first result like this (page zoomed
> at 125%):https://sites.google.com/site/yaoziyuan/files/CharisSILW-error.p=
ng?at...
>
> The tilde (~) above "e" in "Bread" is erroneously rendered as a macron
> (-).
>
> However, with chrome_pie-CharisSIL_local.zip, Chrome for Linux can
> render it right:https://sites.google.com/site/yaoziyuan/files/CharisSIL_l=
ocal-correct...
>
> In Chrome for Windows, both chrome_pie-CharisSILW.zip and chrome_pie-
> CharisSIL_local.zip can render it right.
>
> On Apr 27, 1:01=C2=A0am, Ziyuan Yao <yaoziy...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Also:
>
> > chrome_pie-Andika_local.zip - unpacked "Chrome PIE" extension that
> > assumes you have installed the "Andika" font locally (the font can be
> > downloaded fromhttp://scripts.sil.org/cms/scripts/page.php?site_id=3Dnr=
si&id=3DAndika_do...
> > ):https://sites.google.com/site/yaoziyuan/files/chrome_pie-Andika_local=
...
>
> > chrome_pie-CharisSIL_local.zip - unpacked "Chrome PIE" extension that
> > assumes you have installed the "Charis SIL" font locally (the font can
> > be downloaded fromhttp://scripts.sil.org/cms/scripts/page.php?site_id=
=3Dnrsi&id=3DCharisSIL...
> > ):https://sites.google.com/site/yaoziyuan/files/chrome_pie-CharisSIL_lo=
...
>
> > I finally realized that the rendering problems of AndikaW and
> > CharisSILW are caused by Chrome for Linux. They don't occur in Chrome
> > for Windows.
>
> > On Apr 27, 12:32=C2=A0am, Ziyuan Yao <yaoziy...@gmail.com> wrote:
>
> > > ---------- Forwarded message ----------
> > > From: Ziyuan Yao <yaoziy...@gmail.com>
> > > Date: Fri, Apr 27, 2012 at 12:31 AM
> > > Subject: Re: [crx] Re: Shipping a font with an extension?
> > > To: =C5=81ukasz =C5=81oboda <lukasz.w.lob...@gmail.com>
>
> > > Sure:
>
> > > chrome_pie-AndikaW.zip - unpacked "Chrome PIE" extension using SIL's
> > > Andika font's WOFF version:https://sites.google.com/site/yaoziyuan/fi=
les/chrome_pie-AndikaW.zip?...
>
> > > chrome_pie-CharisSILW.zip - unpacked "Chrome PIE" extension using
> > > SIL's Charis SIL font's WOFF version:https://sites.google.com/site/ya=
oziyuan/files/chrome_pie-CharisSILW.z...
>
> > > Font declaration is in fontscript.js, which is loaded at
> > > document_start as specified by manifest.json.
>
> > > Th AndikaW version works better, but still has minor rendering issues
> > > compared to locally installed font counterparts.
>
> > > On Thu, Apr 26, 2012 at 11:17 PM, =C5=81ukasz =C5=81oboda
> > > <lukasz.w.lob...@gmail.com> wrote:
> > > > could you provide some code? (CSS)
>
> > > > 2012/4/26 Ziyuan Yao <yaoziy...@gmail.com>
>
> > > >> Sorry, Chrome seems to have a problem rendering Charis SIL as a We=
b
> > > >> font in small sizes. For example, e+ U+0303 (e with a combining ti=
lde
> > > >> above) can be shown as e with a macron above in certain small size=
s.
> > > >> Calling Charis SIL as a locally installed font doesn't have this
> > > >> problem.
>
> > > >> On Apr 26, 7:51=C2=A0am, Ziyuan Yao <yaoziy...@gmail.com> wrote:
> > > >> > Lukasz, Devin:
>
> > > >> > I want to tell you I have succeeded using your method. I will pu=
t your
> > > >> > names in my extension's Acknowledgments :-)
>
> > > >> > On Apr 24, 2:06=C2=A0am, Devin <devinrho...@gmail.com> wrote:
>
> > > >> > > ...
> > > >> > > and you'll want to generate that code with some javascript lik=
e this,
> > > >> > > probably injected on document_start
>
> > > >> > > var style =3D document.createElement('style');
> > > >> > > style.innerHTML =3D
> > > >> > > =C2=A0 '@font-face
> > > >> > > {
> > > >> > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
'+
> > > >> > > =C2=A0 ' =C2=A0font-family: "Your italic
> > > >> > > typeface";
> > > >> > > '+
> > > >> > > =C2=A0 ' =C2=A0src: url("' + chrome.extension.getURL('type/fil=
ename-ital.eot') +
> > > >> > > ' "); =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 '+
> > > >> > > =C2=A0 ' =C2=A0src:
> > > >> > > local("=E2=98=BA"),
> > > >> > > '+
> > > >> > > =C2=A0 ' =C2=A0 =C2=A0url("' + chrome.extension.getURL('type/f=
ilename-ital.woff') + '
> > > >> > > ") format("woff"), =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0'+
> > > >> > > =C2=A0 ' =C2=A0 =C2=A0url("' + chrome.extension.getURL('type/f=
ilename-ital.otf') + '
> > > >> > > ") format("opentype"), =C2=A0 =C2=A0 =C2=A0 =C2=A0 '+
> > > >> > > =C2=A0 ' =C2=A0 =C2=A0url("' + chrome.extension.getURL('type/f=
ilename-
> > > >> > > ital.svg#filename-ital') + ' ") format("svg");'+
> > > >> > > =C2=A0 '}';
> > > >> > > document.documentElement.appendChild(style);
>
> > > >> > > On Apr 23, 2:59=C2=A0am, =C5=81ukasz =C5=81oboda <lukasz.w.lob=
....@gmail.com> wrote:
>
> > > >> > > > You probably can store fonts in your ext and use
>
> > > >> > > > @font-face {
> > > >> > > > =C2=A0 font-family: "Your italic typeface";
> > > >> > > > =C2=A0 src: url("type/filename-ital.eot");
> > > >> > > > =C2=A0 src: local("=E2=98=BA"),
> > > >> > > > =C2=A0 =C2=A0 url("type/filename-ital.woff") format("woff"),
> > > >> > > > =C2=A0 =C2=A0 url("type/filename-ital.otf") format("opentype=
"),
> > > >> > > > =C2=A0 =C2=A0 url("type/filename-ital.svg#filename-ital") fo=
rmat("svg");
> > > >> > > > =C2=A0 }
>
> > > >> > > > 2012/4/22 Ziyuan Yao <yaoziy...@gmail.com>
>
> > > >> > > > > I've just developed this interesting extension:
>
> > > >> > > > > >https://sites.google.com/site/yaoziyuan/files/chrome_pie.=
zip?attredir...
>
> > > >> > > > > However, it requires a font called Charis SIL from:
>
> > > >> > > > > >http://scripts.sil.org/cms/scripts/page.php?site_id=3Dnrs=
i&id=3DCharisSIL...
>
> > > >> > > > > I suppose Chrome doesn't have any built-in way for an exte=
nsion to
> > > >> > > > > install a font, does it?
>
> > > >> > > > > --
> > > >> > > > > You received this message because you are subscribed to th=
e Google
> > > >> > > > > Groups
> > > >> > > > > "Chromium-extensions" group.
> > > >> > > > > To post to this group, send email to
> > > >> > > > > chromium-extensi...@chromium.org.
> > > >> > > > > To unsubscribe from this group, send email to
> > > >> > > > > chromium-extensions+unsubscr...@chromium.org.
> > > >> > > > > For more options, visit this group at
>
> > > >> > > > > >http://groups.google.com/a/chromium.org/group/chromium-ex=
tensions/?hl=3Den.
>
> > > >> --
> > > >> You received this message because you are subscribed to the Google=
 Groups
> > > >> "Chromium-extensions" group.
> > > >> To post to this group, send email to chromium-extensi...@chromium.=
org.
> > > >> To unsubscribe from this group, send email to
> > > >> chromium-extensions+unsubscr...@chromium.org.
> > > >> For more options, visit this group at
> > > >>http://groups.google.com/a/chromium.org/group/chromium-extensions/?=