|
Smalltalk/X WebserverDocumentation of class 'HersheyFont': |
|
|
Class: HersheyFontInheritance:Object | +--FontDescription | +--Font | +--HersheyFont
Description:
HersheyFont provides (limited) support to draw characters
from the hershey font data file 'hersh.oc'
(which is available via ftp and must be aquired from elsewhere).
This is a demo class - not maintained or meant for productive use.
Notice: this is a very old demo - it should be rewritten to honor
the FontDescription protocol (see BitmapFont as a better example).
Support for hershey fonts is based on a freeware cd-rom distribution
by DEC. This disk contains the hershey outlines and glyph maps of
the following fonts:
Fonts:
Roman: Plain, Simplex, Duplex, Complex Small, Complex, Triplex
Italic: Complex Small, Complex, Triplex
Script: Simplex, Complex
Gothic: German, English, Italian
Greek: Plain, Simplex, Complex Small, Complex
Cyrillic: Complex
Symbols:
Mathematical
Daggers
Astronomical
Astrological
Musical
Typesetting (ffl,fl,fi sorts of things)
Miscellaneous:
- Playing card suits
- Meteorology
- Graphics (lines, curves)
- Electrical
- Geometric (shapes)
- Cartographic
- Naval
- Agricultural
- Highways
- Etc...
Legal notice:
This distribution of the Hershey Fonts may be used by anyone for
any purpose, commercial or otherwise, providing that:
1. The following acknowledgements must be distributed with
the font data:
- The Hershey Fonts were originally created by Dr.
A. V. Hershey while working at the U. S.
National Bureau of Standards.
- The format of the Font data in this distribution
was originally created by
James Hurt
Cognition, Inc.
900 Technology Park Drive
Billerica, MA 01821
(mit-eddie!ci-dandelion!hurt)
2. The font data in this distribution may be converted into
any other format *EXCEPT* the format distributed by
the U.S. NTIS (which organization holds the rights
to the distribution and use of the font data in that
particular format). Not that anybody would really
*want* to use their format... each point is described
in eight bytes as 'xxx yyy:', where xxx and yyy are
the coordinate values as ASCII numbers.
Related information:
BitmapFont
FontDescription
Font
Examples:|aView| aView := View new extent:500@200. aView openAndWait. aView backingStore:true. HersheyFont showFont:(HersheyFont family:'hershey-astrology' face:'bold' style:'roman' size:24) in:aView HersheyFont showFont:(HersheyFont family:'hershey-music' face:'bold' style:'roman' size:24) in:aView HersheyFont showFont:(HersheyFont family:'hershey-meteorology' face:'medium' style:'roman' size:24) in:aView HersheyFont showFont:(HersheyFont family:'hershey-cursive' face:'medium' style:'roman' size:10) in:aView HersheyFont showFont:(HersheyFont family:'hershey-cursive' face:'medium' style:'roman' size:24) in:aView HersheyFont showFont:(HersheyFont family:'hershey-cursive' face:'medium' style:'roman' size:48) in:aView HersheyFont showFont:(HersheyFont family:'hershey-script' face:'bold' style:'roman' size:24) in:aView HersheyFont showFont:(HersheyFont family:'hershey-times' face:'medium' style:'roman' size:12) in:aView HersheyFont showFont:(HersheyFont family:'hershey-times' face:'medium' style:'roman' size:24) in:aView HersheyFont showFont:(HersheyFont family:'hershey-times' face:'medium' style:'roman' size:48) in:aView HersheyFont showFont:(HersheyFont family:'hershey-times' face:'bold' style:'roman' size:24) in:aView HersheyFont showFont:(HersheyFont family:'hershey-times' face:'medium' style:'italic' size:24) in:aView HersheyFont showFont:(HersheyFont family:'hershey-times' face:'bold' style:'italic' size:24) in:aView HersheyFont showFont:(HersheyFont family:'hershey-futura' face:'medium' style:'roman' size:24) in:aView HersheyFont showFont:(HersheyFont family:'hershey-futura' face:'bold' style:'roman' size:24) in:aView HersheyFont showFont:(HersheyFont family:'hershey-markers' face:'medium' style:'roman' size:24) in:aView HersheyFont showFont:(HersheyFont family:'hershey-math1' face:'medium' style:'roman' size:24) in:aView HersheyFont showFont:(HersheyFont family:'hershey-math2' face:'medium' style:'roman' size:24) in:aView HersheyFont showFont:(HersheyFont family:'hershey-symbol' face:'medium' style:'roman' size:24) in:aView HersheyFont showFont:(HersheyFont family:'hershey-gothic-italian' face:'bold' style:'roman' size:24) in:aView HersheyFont showFont:(HersheyFont family:'hershey-gothic-german' face:'bold' style:'roman' size:24) in:aView HersheyFont showFont:(HersheyFont family:'hershey-gothic-english' face:'bold' style:'roman' size:24) in:aView ]. |
|
|
ST/X 6.1.1; WebServer 1.620 at exept:8081; Wed, 23 May 2012 19:14:47 GMT
|