Thank you fantasai.
I was creating a document how a glyph can change its form other than rotating 90 degrees, and wanted to show an example using HTML, so CSS transforms can't be a help. You know, vertical variant is mostly rotation, but some glyphs change the shape as well.
It looks like it's not possible today. Thank you for your help anyway.
Regards,
Koji Ishii
-----Original Message-----
From: fantasai [mailto:fantasai.lists@inkedblade.net]
Sent: Thursday, June 17, 2010 8:15 AM
To: Ishii Koji
Cc: www-style@w3.org
Subject: Re: [css-fonts] Is it possible to select a vertical variant in a font?
On 06/16/2010 07:56 AM, Ishii Koji wrote:
> Hello,
>
> I'm wondering if it's possible to select a vertical variant using CSS,
> either in current recommendations or in any drafts.
>
> I know I can prepend "@" to the font-family to do that, but it's not
> cross-platform, and some browsers do not support this even on Windows.
>
> I looked around the site without luck. If anybody knows how I can do
> this, I'd appreciate to know.
Hello Koji-san,
The layout engine should be selecting the vertical variant of a font whenever rendering text in a vertical writing mode. The page author should not have to select this manually.
If it is necessary to rotate horizontal text, then CSS Transforms can be used. Alternatively, we can add a value to the upcoming 'text-orientation' property that selects rotated glyphs rather than vertical ones.
~fantasai