scriptituk / ttf2pscid2 Goto Github PK
View Code? Open in Web Editor NEWTTF to PostScript Type 2 CIDFont Converter (Type 42)
TTF to PostScript Type 2 CIDFont Converter (Type 42)
I also wanted to know what is meant by the word directory(this is cmap?) in the example that was given, cidfont dup / sfnts %DIRECTORY <....>
And I would like to know what the array is for, the line above. Why are there two values everywhere, and there are three, plus the third position is negative [100 6 -2].
And another question is how the Cyrillic alphabet is encoded, otherwise I have squares instead of Cyrillic.
I am a newer for Postscript, i want to output Chinese text to printer in PostScript. I use your tools to convert TTF to ps , like this
gswin64.exe -q -o- -dNODISPLAY -sttf=c:\windows\fonts\msyh.ttf -ssubset='中文abc123chinese' -st42=msyh2.ps ttf2pscid2.ps
I tried to write PostScript code in end of the msys2.ps file ,
/MicrosoftYaHei findfont 20 scalefont setfont
150 325 moveto
(中文abc123chinese) show
then use GSview to show the msys2.ps , content is messy code.
could help me to give me a example ? thanks!
$ gs -q -o- -dNOSAFER -dNODISPLAY -sttf=NotoSansTamil-VariableFont.ttf -st42=NotoSansTamil-VariableFont.cid ttf2pscid2.ps
ERROR inc? need string.ps
Ghostscript's Version Details:
$ gs -v
GPL Ghostscript 9.55.0 (2021-09-27)
Copyright (C) 2021 Artifex Software, Inc. All rights reserved.
This may be just an artifact of Postscript fonts, but there is a doubling of size when converting a TTF to T42 font.
Is there any way to compress the size ? Is there a way to make it a binary file rather than a text file (to reduce the size) ?
I have ArialUnicodeMS which goes from a 23MB TTF to 46MB t42 file!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.