Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-13468

[font/freetype] Vertically Writing (tategaki) support

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Unresolved
    • Minor
    • None
    • Win32SS

    Description

      We have to implement "TATEGAKI" for Asian font support. This word "tategaki" means vertically writing in Japanese.

      Please see the screenshot Tategaki.png and the test program Tategaki.zip. Tategaki are usually used in Asian.

      The tategaki font name begins by "@". For example, The font name "@MS Gothic" indicates a rotated font of "MS Gothic". Usually tategaki are used with font rotation. However arbitary font rotation will be later work.

      Keywords are: FT_HAS_VERTICAL and FT_LOAD_VERTICAL_LAYOUT.

      If FT_HAS_VERTICAL(face) is true, the face has vertical text layout. Then, you can use "@" plus font name. If you loads a glyph with FT_LOAD_VERTICAL_LAYOUT, the loaded glyph might have special layout (especially Asian-specific characters of class Tu or class Tr). In tategaki font (with @), the characters of class U and class Tr should spin 90 degrees counterclockwise. The character of class R has no difference in rendering. See freetype documents for details. See VerticalOrientation-17.txt for character classification.

      The tategaki font names should be enumerated with "@", by EnumFontFamiliesEx function.

      Attachments

        1. add-tategaki-tests.patch
          11 kB
          Katayama Hirofumi MZ
        2. add-tategaki-tests.patch
          11 kB
          Katayama Hirofumi MZ
        3. generate_vert_font_table.py
          2 kB
          Mark Jansen
        4. generate_vert_font_table.py
          1 kB
          Mark Jansen
        5. metrics2.png
          2 kB
          Katayama Hirofumi MZ
        6. result.txt
          11 kB
          Mark Jansen
        7. Tategaki.png
          5 kB
          Katayama Hirofumi MZ
        8. tategaki-after.txt
          100 kB
          Katayama Hirofumi MZ
        9. tategaki-before.txt
          100 kB
          Katayama Hirofumi MZ
        10. TategakiTest.sfd
          23 kB
          Katayama Hirofumi MZ
        11. TategakiTest.sfd
          24 kB
          Katayama Hirofumi MZ
        12. TategakiTest.ttf
          5 kB
          Katayama Hirofumi MZ
        13. TategakiTest.ttf
          5 kB
          Katayama Hirofumi MZ
        14. tategaki-wip.patch
          16 kB
          Katayama Hirofumi MZ
        15. VerticalOrientation-17.txt
          13 kB
          Katayama Hirofumi MZ

        Issue Links

          Activity

            People

              bug zilla Bug Zilla
              katayama_hirofumi_mz Katayama Hirofumi MZ
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: