Comments (11)
You need to have a GlyphOrderAndAliasDB
file in the directory. That file needs to list all of the glyphs in the exact same order and with the exact same name as they appear in the source TrueType font.
makeotf
cannot perform font format conversions. To convert from TrueType to Type 1 you need to use another tool in the FDK called tx
. The command to run will be something like this,
tx -t1 font.ttf > font.pfa
from afdko.
Thank you for quick reply. :)
I thought it will take glyphnames and encoding from Lohit-Odia.ttf.
https://github.com/i-tu/Hasklig/blob/master/GlyphOrderAndAliasDB I see its format is unicode
"(uniXXXX/uXXXX)" "glyphname in ttf-font"
It looks like providing GDEF to makeoft.
Will try and reopen if any further information needed.
from afdko.
Clarification: it's the second column of the GlyphOrderAndAliasDB
that needs to be an exact match with the font.
from afdko.
Thank you @miguelsousa 👍
from afdko.
@miguelsousa however in my memory TTF does not record glyph names, so how can i get these names being used in GlyphOrderAndAliasDB?
from afdko.
Use the tx
command-line program to dump the glyph names:
tx -dump -4 <path to font file>
## glyph[tag] {name,encoding}
glyph[1] {NULL,U+0000}
glyph[2] {CR,U+000D}
glyph[3] {space,U+0020}
glyph[4] {exclam,U+0021}
glyph[5] {quotedbl,U+0022}
then edit the output to be a list of glyph names.
Or use the spot
tool:
spot -nc <path to font file>
--- names[glyphId]=<name>
[0]=<.notdef@0>
[1]=<NULL@1>
[2]=<CR@2>
[3]=<space@3>
[4]=<exclam@4>
[5]=<quotedbl@5>
For the spot
output, you need to strip off the @nn suffix.
This is where a text editor with good search and replace functions, like real regular expression support, is very useful. I favor BBedit, but there are many alternatives.
from afdko.
however in my memory TTF does not record glyph names, so how can i get these names being used in GlyphOrderAndAliasDB?
That's true, the glyphs in TrueType fonts do not require to have names.
When a TTF does not have glyph names, I don't know exactly how to setup the GlyphOrderAndAliasDB file. If you can provide a TTF without glyph names I can try to find out.
from afdko.
If no glyph names are supplied by the 'post' table, then the FDK simply refers to them by "glyph". Again, the 'tx -dump -4' output will provide glyph names used by 'makeotf'.
from afdko.
@miguelsousa you can see this one: http://pan.baidu.com/s/1eQroRrs
It is directly generated from my program (which generates a lot of overlapping shapes; they will be merged in FontForge).
from afdko.
@be5invis below is a list of the first 50 glyph names I got from that file. These names are what you'll need to use in the second column of the GlyphOrderAndAlias file.
The command I used for getting the list was,
tx -dump -4 pass0-iosevka-regular.ttf | sed 's/glyph\[[0-9]*\] {\(.*\),.*/\1/'
.notdef
space
uni0307
uni0308
uni030A
gravecomb
acutecomb
uni0302
uni030C
tildecomb
uni0304
uni0306
uni0311
hookabovecomb
uni030F
uni030B
uni0313
uni0312
uni0314
uni0342
g20
g21
uni0327
uni0328
uni0345
dotbelowcomb
uni0324
uni0330
uni0325
uni0331
uni032D
uni032E
uni032F
uni0326
A
V
W
X
Y
K
B
D
P
R
C
G
O
Q
U
F
from afdko.
@miguelsousa thanks.
from afdko.
Related Issues (20)
- [otfstemhist] cannot specify glyphs via external glyph list
- [otfstemhist] -h reports unrelated options, wrong tool name HOT 1
- Unify format of external glyph names files across AFDKO tools
- [otfautohint/otfstemhist] Add tests
- use TTX tools to compile a otf file HOT 10
- [spot] alternate metrics ignored in class kern proof
- [otfautohint] (minor) outdated tool names
- [otfautohint] points “optimized away” in flex-like scenario (print only) HOT 15
- [tx] Crashing without error when using -decid option in -t1 mode
- Reordering of ligature substitution rules is considered harmful HOT 10
- [otfautohint] Mishinting of glyph? HOT 7
- [otfautohint] Consider adding flag to selectively skip overlap processing for some glyphs
- [makeotf] silently fails when GOADB has unexpected data
- [makeinstancesufo] & [checkoutlinesufo] multiprocessing vs progress bar, output improvement
- building fails on manjaro HOT 2
- [makeotf] substitution without target item does not fail HOT 8
- Pytest Error Encountered During AFDKO Compilation on Arch Linux HOT 6
- [checkoutlinesufo] XMLSyntaxError reading fontinfo.plist of temp UFO font HOT 3
- [makeotf] -r reports all unhinted glyphs individually HOT 1
- [buildmasterotfs] incompatible sources produced HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from afdko.