のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

ftmultiでvariable fontが見れる

ft2demosのftmultiをVisual Studio2017でビルドした。
f:id:none53:20180710175602p:plain
f:id:none53:20180710175608p:plain

github.com

F1 F2などで、各軸が動かせるようです。

sprintf( buf,
             "FreeType MM Glyph Viewer - part of the FreeType %s test suite",
             version );

    grWriteln( buf );
    grLn();
    grWriteln( "This program displays all glyphs from one or several" );
    grWriteln( "Multiple Masters or GX font files, with the FreeType library." );
    grLn();
    grWriteln( "Use the following keys:");
    grLn();
    grWriteln( "?           display this help screen" );
    grWriteln( "a           toggle anti-aliasing" );
    grWriteln( "h           toggle outline hinting" );
    grWriteln( "b           toggle embedded bitmaps" );
    grWriteln( "space       toggle rendering mode" );
    grLn();
    grWriteln( "p, n        previous/next font" );
    grLn();
    grWriteln( "H           cycle through hinting engines (if available)" );
    grLn();
    grWriteln( "Up, Down    change pointsize by 1 unit" );
    grWriteln( "PgUp, PgDn  change pointsize by 10 units" );
    grLn();
    grWriteln( "Left, Right adjust index by 1" );
    grWriteln( "F7, F8      adjust index by 10" );
    grWriteln( "F9, F10     adjust index by 100" );
    grWriteln( "F11, F12    adjust index by 1000" );
    grLn();
    grWriteln( "F1, F2      adjust first axis by 1/50th of its range" );
    grWriteln( "F3, F4      adjust second axis by 1/50th of its range" );
    grWriteln( "F5, F6      adjust third axis by 1/50th of its range" );
    grWriteln( "1, 2        adjust fourth axis by 1/50th of its range" );
    grWriteln( "3, 4        adjust fifth axis by 1/50th of its range" );
    grWriteln( "5, 6        adjust sixth axis by 1/50th of its range" );
    grLn();
    grLn();
    grWriteln( "press any key to exit this help screen" );
ftmulti: multiple masters font viewer - part of FreeType
--------------------------------------------------------

Usage: ftmulti [options] pt font ...

  pt           The point size for the given resolution.
               If resolution is 72dpi, this directly gives the
               ppem value (pixels per EM).
  font         The font file(s) to display.

  -w W         Set window width to W pixels (default: 640px).
  -h H         Set window height to H pixels (default: 480px).

  -e encoding  Specify encoding tag (default: no encoding).
               Common values: `unic' (Unicode), `symb' (symbol),
               `ADOB' (Adobe standard), `ADBC' (Adobe custom).
  -r R         Use resolution R dpi (default: 72dpi).
  -f index     Specify first glyph index to display.
  -d "axis1 axis2 ..."
               Specify the design coordinates for each
               Multiple Master axis at start-up.

  -v           Show version.