Git Product home page Git Product logo

css-orientation-test's Introduction

CSS Orientation Test

CSS Half-Width Orientation Test and CSS Full-Width Orientation Test are special-purpose OpenType fonts that are based on the Adobe-Identity-0 ROS (ROS stands for /Registry, /Ordering, and /Supplement, and refers to the /CIDSystemInfo dictionary entries that define the glyph set name for CID-based character collections). The Adobe-Identity-0 ROS is a special-purpose character collection whose use is not tied to a specific language, and these are special-purpose OpenType fonts that are intended to render all Unicode code points using glyphs that indicate the glyph orientation based on the writing direction, thus the reason why the Adobe-Identity-0 ROS was chosen as the basis for this OpenType font.

Features

These fonts include 2,050 glyphs (CIDs 0 through 2049), and map 1,111,998 Unicode code points to their 2,048 horizontal glyphs. CIDs 1 through 2048 are the horizontal glyphs, and are all the same. 2,048 glyphs are used for a more efficient (smaller) 'cmap' table size. CID+2049 is a single vertical glyph. The 2,048 High and Low Surrogates (U+D800 through U+DFFF), the two noncharacters in the BMP and in each of the 16 Supplementary Planes (FFFE and FFFF), and the 32 noncharacters in the range U+FDD0 through U+FDEF are explicitly and intentionally excluded. The 2,048 horizontal glyphs in each font map to a single vertical glyph via the 'vert' (Vertical Alternates) GSUB feature. As fully-functional OpenType fonts, the following 14 'sfnt' tables are included: CFF, DSIG, GSUB, OS/2, VORG, cmap, head, hhea, hmtx, maxp, name, post, vhea, and vmtx.

The images below show the functional glyphs in CSS Half-Width Orientation Test and CSS Full-Width Orientation Test (CID+1, the first of the 2,048 horizontal glyphs, and CID+2049, the single vertical glyph, are shown):

alt text alt text

Note that within each OpenType font the vertical advance of the vertical glyph is one-half that of the horizontal advance of the horizontal glyphs, whose purpose is so that testing-automation scripts can more easily detect the glyph orientation and thus whether the 'vert' GSUB was applied correctly by measuring the metrics of the rendered text.

Font installation instructions

Building the fonts from source

Requirements

To build the binary font files from source, you need to have installed the Adobe Font Development Kit for OpenType (AFDKO). The AFDKO tools are widely used for font development today, and are part of most font editor applications.

Building the font

In this repository, all necessary files are in place for building the OpenType/CFF fonts, and the COMMANDS.txt file provides the command lines that are used.

Getting Involved

For any suggestions for changes, please create a new issue for consideration.

css-orientation-test's People

Contributors

danrhatigan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.