This is an archive of the original scripts.sil.org site, preserved as a historical reference. Some of the content is outdated. Please consult our other sites for more current information: software.sil.org, ScriptSource, FDBP, and silfontdev



Home

Contact Us

General

Initiative B@bel

WSI Guidelines

Encoding

Principles

Unicode

Training

Tutorials

PUA

Conversion

Resources

Utilities

TECkit

Maps

Resources

Input

Principles

Utilities

Tutorials

Resources

Type Design

Principles

Design Tools

Formats

Resources

Font Downloads

Gentium

Doulos

IPA

Rendering

Principles

Technologies

OpenType

Graphite

Resources

Font FAQ

Links

Glossary


Computers & Writing Systems

SIL HOME | SIL SOFTWARE | SUPPORT | DONATE | PRIVACY POLICY

You are here: Rendering > Resources
Short URL: https://scripts.sil.org/GetGlyphPts

GetGlyphPts utility

Alan Ward, 2004-09-30

Description

GetGlyphPts is a simple Windows utility that reports the points that specify a glyph outline as reported by the Windows API. The coordinates for the points are expressed in logical units (ie based on font size and screen resolution) and do reflect any hinting on the glyph. The point data can optionally be written to a file.

Source code in C is included to show how the Windows GetGlyphOutline() function is called and how the resulting data structures are parsed.

For more information on TrueType fonts and how glyph outlines are specified using points see An Introduction to TrueType Fonts.

Usage

Start the program in the usual way (eg double click on it)

Select File / Glyph Id (or press  Control + I ). In the resulting dialog, fill in the glyph id for the glyph of interest and optionally provide a file name (with fully qualified path) for the point data to be written to. A file that already exists will have the data appended when the data is written (below). The glyph id can be found using another utility, such as ViewGlyph.

Select File / Choose Font (or press  Control + F ) then choose a font from the dialog. Normally using a large point size is helpful.

The point data for each contour composing the glyph will be diplayed in the client area. Also displayed are the font name, the height of the font in logical units, and the glyph id. The height will be a negative number because of the requirements of the Windows API. See Microsoft's SDK documention on the  CreateFont() function for an explanation. Most people can ignore the negative sign.

Optionally choose File / Write File (or press  Control + W ) to write the data to the previously specified file (above). Data is appended to the end of the file if it already exists.

Download

The zip archive contains the compiled program and the C source code (but not an entire compilable project).

GetGlyphPts
Alan Ward, 2004-09-29
Download "GetGlyphPts.zip", ZIP archive, 30KB [2658 downloads]

Copyright notice

Copyright 2000 SIL International



Note: the opinions expressed in submitted contributions below do not necessarily reflect the opinions of our website.



© 2003-2024 SIL International, all rights reserved, unless otherwise noted elsewhere on this page.
Provided by SIL's Writing Systems Technology team (formerly known as NRSI). Read our Privacy Policy. Contact us here.