Let's get vertical

Sorting it all Out
Michael Kaplan's random stuff of dubious value
Be sure to read the disclaimer here first!

Let's get vertical

  • Comments 11

(computerized apologies to Olivia Newton John)

Dmilat asked (in the Suggestion Box):

@-prefixed fonts

If you try to manually type a font name like @Arial Unicode MS in MS Word font selection combo-box and then enter a text with some CJK hieroglyphs (make sure the font name did not change), those characters will be turned 90 degree. I believe this allows for vertical text layout that may be used by people from east asian countries. What is amazing that I failed to find any info on that in MSDN. Is it kind of undocumented feature ? Can you give more info on that ?

This feature has been around for a long time, actually. I look in Nadine Kano's book for the first time I had seen mention of it (see the mention here in Vertical Writing and Printing). An excerpt here:

As the following illustration shows, displaying text vertically doesn't mean that you simply rotate an entire line of text by 90 degrees. Most characters remain upright, but others, such as those identified by arrows, change orientation.

Fortunately, with Win32 you don't need to write code to rotate characters. To display text vertically on Windows, enumerate the available fonts as usual and select a font whose typeface name begins with the at (@) character. Then create a LOGFONT structure, setting both the escapement and the orientation to 270 degrees. Calls to TextOut are the same as for horizontal text.

The Far East Win32 SDK contains a sample application called TATE (short for tategaki, meaning "vertical writing") which demonstrates how to create fonts and display vertical text. Figure 7-22 shows a sample file displayed in TATE using a horizontal font. Selecting a vertical font from the Font dialog box (see Figure 7-23 below) causes the text to be displayed vertically. (See Figure 7-24 below.)

And so on. See the link for the full story. :-)

There are probably other mentions in both the Platform SDK and MSDN, but it is harder to find them with symbols like @ usually being ignored in searches. :-)

 

This post brought to you by "@" (U+ff20, FULLWIDTH COMMERCIAL AT)

Comment on the blather
Leave a Comment
  • Please add 7 and 3 and type the answer here:
  • Post
Blog - Comment List
  • What about 90º counterclockwise? For example, if I want to label the y-axis of a Cartesian graph?
  • why two different characters for @ and @?
  • If you want to rotate the other way, you have to do it yourself.

    For the two versions, one is the WIDE version, for compat. with CJK legacy code pages....
  • It was quite a while ago that I first posted Let's get vertical and talked about how prepending a font

  • One of the interesting side effects of having comments open all the time is that sometimes a post from

  • The other day I was chatting by email with a developer on a unique problem -- she was trying to support

  • The question Craig asked me last December was clear enough: When will Windows support a vertical layout

  • ... and if I don't have any fonts whose name begins with "@"??????

  • No East Asian suppoort installed, probably....

  • Verticality.

  • I've talked about vertical text support now and again over the years, for example in blogs like:

Page 1 of 1 (11 items)