EnglishFrenchSpanish

OnWorks favicon

cube2font - Online in the Cloud

Run cube2font in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command cube2font that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


cube2font - Utility program designed to create font bitmaps for Cube Engine games

SYNOPSIS


cube2font infile outfile outborder[:inborder] pad offset advance charwidth charheight
texwidth texheight [spacewidth spaceheight texdir]

DESCRIPTION


cube2font is a utility program designed to create font bitmaps for Cube Engine games, it
works by taking a Truetype font and building it into a set of coordinates in an image.
cube2font is an improved version of the previous TTF2Font, supporting a much larger range
of characters.

The program outputs one or more PNG images containing a grid of characters, so-called
"texes", and an accompanying config file in plaintext, which lists the character
coordinates in the images.

PARAMETERS


infile
Path to input file in truetype format.

outfile
Sets the font name in the config file, and is also used as an output filename
template: A number and the .png extension will be appended to the texes, and a .cfg
extension to the coordinate file.

outborder
Size of black outside border around each character on the texes.

inborder
Size of black border between the elements inside each character.

pad
Added padding around characters on the texes, to prevent them "bleeding" into
neighbouring characters.

offset
Added spacing to the left of each character when they are rendered ingame. If
exaggerated it would look something like this:

| A| B|

advance
Added spacing to the right of each character when they are rendered ingame. If
exaggerated it would look something like this:

|A |B |

charwidth
Width of generated characters on the texes.

charheight
Height of generated characters on the texes.

texwidth
Width of generated texes.

texheight
Height of generated texes.

spacewidth
Width of the standard space character size when rendered ingame, defaults to a
third of spaceheight if omitted or set to 0.

spaceheight
Height of the vertical character separation when rendered ingame, defaults to the
maximum vertical character range if omitted or set to 0. This value is normally
larger than charheight, since it takes into account characters extending outside
the 'em' box. This value will make the rendered characters scale to fit.

texdir
Sets the font directory path in the config file.

EXAMPLES


cube2font Play-Bold.ttf play 4 15 1 1 54 54 512 512 0 0 fonts/
Generates a font named play with a 4 pixel black border, an additional 15 pixels of
space around characters, one pixel of extra spacing at both sides when displayed
ingame, a character size of 54x54 pixels, a tex size of 512x512 pixels, a 23 pixels
wide standard space character, a 71 pixels high standard vertical line separation, and
the font path set as fonts/

This would normally generate the files
play.cfg
play0.png
play1.png
play2.png

The above values are used for the base font.

cube2font default.ttf default 3 19 1 1 49 49 512 512 32 64 packages/fonts/
This generates the default font for the cube2 game Sauerbraten.

AUTHORS


cube2font was created by Lee "eihrul" Salzman.

This manual page was written by Martin Erik Werner
<[email protected]>

Use cube2font online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    QNAP NAS GPL Source
    QNAP NAS GPL Source
    GPL source for QNAP Turbo NAS.
    Audience: Developers. User interface:
    Web-based. Programming Language: C,
    Java. Categories:System, Storage,
    Operating System Ker...
    Download QNAP NAS GPL Source
  • 2
    deep-clean
    deep-clean
    A Kotlin script that nukes all build
    caches from Gradle/Android projects.
    Useful when Gradle or the IDE let you
    down. The script has been tested on
    macOS, but ...
    Download deep-clean
  • 3
    Eclipse Checkstyle Plug-in
    Eclipse Checkstyle Plug-in
    The Eclipse Checkstyle plug-in
    integrates the Checkstyle Java code
    auditor into the Eclipse IDE. The
    plug-in provides real-time feedback to
    the user about viol...
    Download Eclipse Checkstyle Plug-in
  • 4
    AstrOrzPlayer
    AstrOrzPlayer
    AstrOrz Player is a free media player
    software, part based on WMP and VLC. The
    player is in a minimalist style, with
    more than ten theme colors, and can also
    b...
    Download AstrOrzPlayer
  • 5
    movistartv
    movistartv
    Kodi Movistar+ TV es un ADDON para XBMC/
    Kodi que permite disponer de un
    decodificador de los servicios IPTV de
    Movistar integrado en uno de los
    mediacenters ma...
    Download movistartv
  • 6
    Code::Blocks
    Code::Blocks
    Code::Blocks is a free, open-source,
    cross-platform C, C++ and Fortran IDE
    built to meet the most demanding needs
    of its users. It is designed to be very
    extens...
    Download Code::Blocks
  • More »

Linux commands

  • 1
    abidw
    abidw
    abidw - serialize the ABI of an ELF
    file abidw reads a shared library in ELF
    format and emits an XML representation
    of its ABI to standard output. The
    emitted ...
    Run abidw
  • 2
    abilint
    abilint
    abilint - validate an abigail ABI
    representation abilint parses the native
    XML representation of an ABI as emitted
    by abidw. Once it has parsed the XML
    represe...
    Run abilint
  • 3
    core-cleanup
    core-cleanup
    core-cleanup - clean-up script for CORE
    DESCRIPTION: usage: core-cleanup [-d
    [-l]] Clean up all CORE namespaces
    processes, bridges, interfaces, and
    session dir...
    Run core-cleanup
  • 4
    core-daemon
    core-daemon
    core-daemon - CORE daemon manages
    emulation sessions started from GUI or
    scripts ...
    Run core-daemon
  • 5
    g++-4.9
    g++-4.9
    gcc - GNU project C and C++ compiler ...
    Run g++-4.9
  • 6
    g++-5
    g++-5
    gcc - GNU project C and C++ compiler ...
    Run g++-5
  • More »

Ad