W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2013

Re: [whatwg] Enabling LCD Text and antialiasing in canvas

From: Mark Callow <callow.mark@artspark.co.jp>
Date: Thu, 04 Apr 2013 14:02:14 +0900
Message-ID: <515D0956.4070103@artspark.co.jp>
To: Rik Cabanier <cabanier@gmail.com>
Cc: Gregg Tavares <gman@google.com>, WHATWG <whatwg@lists.whatwg.org>, Stephen White <senorblanco@chromium.org>, Robert O'Callahan <robert@ocallahan.org>, James Robinson <jamesr@google.com>
On 2013/04/04 13:50, Rik Cabanier wrote:
>
>
> On Wed, Apr 3, 2013 at 9:25 PM, Mark Callow
> <callow.mark@artspark.co.jp <mailto:callow.mark@artspark.co.jp>> wrote:
>
>     As screen pixel densities soar, it is increasingly the case that
>     fonts are stored simply as paths that are scaled, especially fonts
>     which have thousands of characters.
>
>
> No, that is not true.
> Talk to font vendors; fonts are not just a collection of path
> segments. They are also not rendered as paths; instead they should
> have specific renderers.
The people who work on our HiGlyph library tell me it is changing. I
have no references I can provide.
>  
>
>     Vertical and horizontal lines won't have any aliasing to begin
>     with so what are you talking about?
>
>
> Of course they have aliasing.  Why wouldn't they?
Because they are vertical and horizontal, therefore no jaggies (aliasing).
>  
>
>
>>     Text also has the nice property that it's filled with a solid color.
>     I know little about Canvas2D but I do know that PostScript and SVG
>     both support gradients etc. when filling text so your statement is
>     wrong.
>
>
> I worked on the rendering engine of Illustrator and Acrobat for 11
> years. Subpixel AA is disabled for text that is filled with gradients
> or images and reverts to normal rendering. AFAIK there is no
> postscript implementation that supports subpixel positioning.
>
> Can you point me to a spec where you can fill text in canvas with a
> gradient instead of a solid color?
As I wrote, I don't know much about Canvas2D. Besides it wasn't clear
that your comment referred only to Canvas2D. 

Regards

    -Mark

-- 
注意:この電子メールには、株式会社エイチアイの機密情報が含まれている場合
が有ります。正式なメール受信者では無い場合はメール複製、 再配信または情
報の使用を固く禁じております。エラー、手違いでこのメールを受け取られまし
たら削除を行い配信者にご連絡をお願いいたし ます.

NOTE: This electronic mail message may contain confidential and
privileged information from HI Corporation. If you are not the intended
recipient, any disclosure, photocopying, distribution or use of the
contents of the received information is prohibited. If you have received
this e-mail in error, please notify the sender immediately and
permanently delete this message and all related copies.
Received on Thursday, 4 April 2013 05:03:27 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:57 UTC