{"id":25504587,"url":"https://github.com/nilostolte/postscript","last_synced_at":"2026-04-29T15:37:18.853Z","repository":{"id":142985122,"uuid":"347654487","full_name":"nilostolte/PostScript","owner":"nilostolte","description":"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","archived":false,"fork":false,"pushed_at":"2023-06-05T23:07:53.000Z","size":1701,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-06-06T00:22:13.360Z","etag":null,"topics":["code-generation","compiler","ghostscript","ghostscript-features","java","postscript","vector-graphics","windows"],"latest_commit_sha":null,"homepage":"","language":"PostScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nilostolte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-14T14:09:31.000Z","updated_at":"2024-05-29T23:15:01.194Z","dependencies_parsed_at":"2024-05-29T23:26:30.593Z","dependency_job_id":null,"html_url":"https://github.com/nilostolte/PostScript","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilostolte%2FPostScript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilostolte%2FPostScript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilostolte%2FPostScript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilostolte%2FPostScript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nilostolte","download_url":"https://codeload.github.com/nilostolte/PostScript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239605126,"owners_count":19666996,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-generation","compiler","ghostscript","ghostscript-features","java","postscript","vector-graphics","windows"],"created_at":"2025-02-19T05:41:16.104Z","updated_at":"2025-11-13T05:30:16.336Z","avatar_url":"https://github.com/nilostolte.png","language":"PostScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostScript\nContains PostScript code that can be used with any PostScript interpreter or converter (ex. Acrobat). I made a choice of using \nGhostview  directly, because one can use some Ghostscript features using shortcuts in Windows.Ghostscript is a stable software\nthat will continue to be used as time passes by. \n\n## Examples\n\nThis [directory](https://github.com/nilostolte/PostScript/tree/main/Examples) contains code that are examples to use PostScript as a graphics script language. For example, details to convert Postscript to Java is given.\n\n[**Link: https://github.com/nilostolte/PostScript/Examples**](https://github.com/nilostolte/PostScript/tree/main/Examples)\n\n\u003ca name=\"verdana\"\u003e\u003c/a\u003e\n## Opentype Fonts in PostScript\n\n\u003cp align=\"center\"\u003e\n\u003ckbd\u003e\n\u003cimg src=\"https://github.com/nilostolte/PostScript/assets/80269251/07208f36-c34a-4599-ab8d-802d9f0af7bd\" width=\"683\" height=\"471\" \u003e\n\u003c/kbd\u003e\n\u003c/p\u003e\n\nThis [project](https://github.com/nilostolte/PostScript/tree/main/OpenType%20Fonts) is a modification of \n[**Glyph Inspector**](https://opentype.js.org/glyph-inspector.html) that generates a PostScript file with all\nglyphs (all ASCII printable characters, in fact) and other information (width table - len array-, and kerning \npairs table - kern array -) of the font file read with the program.\n\n**EASY DOWNLOAD**: download raw \n[**glyph-inspector.html**](https://github.com/nilostolte/PostScript/blob/main/OpenType%20Fonts/glyph-inspector.html),\n[**site.css**](https://github.com/nilostolte/PostScript/blob/main/OpenType%20Fonts/site.css), and \n[**opentype.js**](https://github.com/nilostolte/PostScript/blob/main/OpenType%20Fonts/dist/opentype.js). Notice\nthat **opentype.js** must be in a local **dist** directory as shown in this \n[directory](https://github.com/nilostolte/PostScript/tree/main/OpenType%20Fonts). The other files appearing in\n**dist** directory [here](https://github.com/nilostolte/PostScript/tree/main/OpenType%20Fonts/dist) are just optional versions\nof **opentype.js**.\n\n\nThe program was written in JavaScript and it was added a button that triggers the convertion of the Opentype font file loaded\nby the user. Once triggered, the browser tab where it was run becomes an html text file containing the font information of the\noriginal Opentype font, but expressed in PostScript language. The file is not a PostScript font, but it has all elements to \ndisplay texts using the glyphs of the original OpenType font (actually a font like structure can be contructed with it, but that\nis out of the scope of this project). Copying the file to a text file and renaming it with a \".ps\" becomes a PostScript\nprogram able to display any of the converted glyphs of the font.\n\n### Example **verdana.ps**\n\nAs an example, [verdana.ps](https://github.com/nilostolte/PostScript/tree/main/OpenType%20Fonts/verdana.ps) was obtained by\nloading **Verdana** font, converting it to PostScript, copying the resulting page to a text file, and adding the following \nlines at the end:\n\n```PostScript\ntwo\nfill\nshowpage\n```\n\nThis code simply displays the Verdana glyph for the number 2. Notice the reserved words **fill**, that indicates to fill\nthe glyph instead of stroking (use **stroke** to stroke only), and **showpage** that displays the page (necessary because it's not\nan EPS file).\n\nNotice that the commands right before the new typed commands translates and scales the glyph, respectivelly:\n\n```PostScript\n50 110 translate\n0.2 0.2 scale\n```\n\nThese commands were generated by the convertion program for convenience. They can and should be moved to just before \"two\" function\ncall, in order to make it easier to modify the translation and scale, to, for example, write texts with.\n\nThis example is further discussed in \n[**Displaying Truetype Glyphs in PostScript**](https://github.com/nilostolte/PostScript/tree/main/Examples#displaying-truetype-glyphs-in-postscript).\n\n## 3D Visualization Software\n\nThis [directory](https://github.com/nilostolte/Vector-Art/tree/main/Diamonds%20are%20Forever#diamonds-are-forever) contains an example generated with the 3D visualization software I have developped in PostScript.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilostolte%2Fpostscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnilostolte%2Fpostscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilostolte%2Fpostscript/lists"}