- Notifications
You must be signed in to change notification settings - Fork2
Contains PostScript that can be used with any PostScript interpreter or converter (ex. Acrobat). I made a choice of using Ghostview directly, because one can use some Ghostscript features using shortcuts in Windows
nilostolte/PostScript
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Contains PostScript code that can be used with any PostScript interpreter or converter (ex. Acrobat). I made a choice of usingGhostview directly, because one can use some Ghostscript features using shortcuts in Windows.Ghostscript is a stable softwarethat will continue to be used as time passes by.
Thisdirectory contains code that are examples to use PostScript as a graphics script language. For example, details to convert Postscript to Java is given.
Link: https://github.com/nilostolte/PostScript/Examples
Thisproject is a modification ofGlyph Inspector that generates a PostScript file with allglyphs (all ASCII printable characters, in fact) and other information (width table - len array-, and kerningpairs table - kern array -) of the font file read with the program.
EASY DOWNLOAD: download rawglyph-inspector.html,site.css, andopentype.js. Noticethatopentype.js must be in a localdist directory as shown in thisdirectory. The other files appearing indist directoryhere are just optional versionsofopentype.js.
The program was written in JavaScript and it was added a button that triggers the convertion of the Opentype font file loadedby the user. Once triggered, the browser tab where it was run becomes an html text file containing the font information of theoriginal Opentype font, but expressed in PostScript language. The file is not a PostScript font, but it has all elements todisplay texts using the glyphs of the original OpenType font (actually a font like structure can be contructed with it, but thatis out of the scope of this project). Copying the file to a text file and renaming it with a ".ps" becomes a PostScriptprogram able to display any of the converted glyphs of the font.
As an example,verdana.ps was obtained byloadingVerdana font, converting it to PostScript, copying the resulting page to a text file, and adding the followinglines at the end:
twofillshowpage
This code simply displays the Verdana glyph for the number 2. Notice the reserved wordsfill, that indicates to fillthe glyph instead of stroking (usestroke to stroke only), andshowpage that displays the page (necessary because it's notan EPS file).
Notice that the commands right before the new typed commands translates and scales the glyph, respectivelly:
50110translate0.20.2scale
These commands were generated by the convertion program for convenience. They can and should be moved to just before "two" functioncall, in order to make it easier to modify the translation and scale, to, for example, write texts with.
This example is further discussed inDisplaying Truetype Glyphs in PostScript.
Thisdirectory contains an example generated with the 3D visualization software I have developped in PostScript.
About
Contains PostScript that can be used with any PostScript interpreter or converter (ex. Acrobat). I made a choice of using Ghostview directly, because one can use some Ghostscript features using shortcuts in Windows