Click here to visit our website
Skip to content
by Laenglich » Mon Jan 14, 2008 8:27 pm
by Bhikkhu Pesala » Tue Jan 15, 2008 6:15 am
by Laenglich » Tue Jan 15, 2008 8:29 am
Bhikkhu Pesala wrote:Thanks for posting. You obviously got it to work fairly well. Although the OpenType Compiler Tutorial is well written and clearly laid out, I wouldn't describe the process as simple.
Bhikkhu Pesala wrote:I am familiar with the process of compiling from a DOS box, as I have used the process before with the Windows Help File compiler using Rich Text Files as the source. What seems hard to me is knowing how to write the OT script.
Bhikkhu Pesala wrote:Perhaps you could provide a link to the script that you used for your font, so that we can see just how much text is required.
by Dave Crosby » Tue Jan 15, 2008 2:37 pm
by Laenglich » Fri Jan 18, 2008 8:06 pm
by Bhikkhu Pesala » Sat Jan 19, 2008 3:29 am
garava.ot(l.21 c.3): error: Error: second "#input" option.
garava.ot(l.22 c.2): error: Error: second "#output" option.
#input "Garava Regular.ttf"
#output "Garava Regular.otf"
by Laenglich » Sat Jan 19, 2008 10:13 am
Bhikkhu Pesala wrote:Well, at least I got some error messages, so I must be doing something right.
Bhikkhu Pesala wrote:garava.ot(l.21 c.3): error: Error: second "#input" option.
garava.ot(l.22 c.2): error: Error: second "#output" option.
These are the input/output lines:#input "Garava Regular.ttf"
#output "Garava Regular.otf"
I tried renaming my font to "GaravaR.ttf" and changing the lines accodingly, but the space doesn't seem to be the problem.
by Bhikkhu Pesala » Sat Jan 19, 2008 12:13 pm
#input "Garava Regular.ttf"
#output "Garava Regular.otf"
script latn {
feature PetiteCaps;
feature ScientificInferiors;
feature Superscript;
feature OldstyleFigures;
feature AlternativeFractions;
feature ligatures;
feature discretionaryligatures;
}
feature ScientificInferiors sinf {
lookup ScientificInferiors;
}
lookup ScientificInferiors {
sub [zero-nine] -> [uni2080-uni2089];
sub plus -> uni208A;
sub minus -> uni208B;
sub equal -> uni208C;
sub parenleft -> uni208D;
sub parenright -> uni208E;
}
feature Superscript sups {
lookup Superscript;
}
lookup Superscript {
sub zero -> uni2070;
sub one -> uni00B9;
sub two -> uni00B2;
sub three -> uni00B3;
sub [four-nine] -> [uni2074-uni2079];
sub plus -> uni207A;
sub minus -> uni207B;
sub equal -> uni207C;
sub parenleft -> uni207D;
sub parenright -> uni207E;
}
feature OldstyleFigures onum {
lookup OldstyleFigures;
}
lookup OldstyleFigures {
sub [zero-nine] -> [uniE2C0-uniE2C9];
}
feature AlternativeFractions afrc {
lookup AlternativeFractions;
}
lookup AlternativeFractions {
sub [onequarter - threequarters] -> [uniE34C-uniE34E];
sub [onethird - seveneighths] -> [uniEC73-uniEC7E];
}
feature PetiteCaps pcap {
lookup PetiteCaps;
}
lookup PetiteCaps {
sub exclam -> uniE059;
sub dollar -> uniE2B4;
sub percent -> uniE2B5;
sub ampersand -> uniE05E;
sub question -> uniE077;
sub [zero-nine] -> [uniE2C0-uniE2C9];
sub [a-z] -> [uniE2F1 - uniE30A];
sub exclamdown -> uniE0D9;
sub sterling -> uniE333;
sub yen -> uniE335;
sub questiondown -> uniE34F;
sub [agrave - odieresis] -> [uniE370 - uniE386];
sub [oslash - ydieresis] -> [uniE388 - uniE38F];
sub amacron -> uniE391;
sub abreve -> uniE393;
sub aogonek -> uniE395;
sub cacute -> uniE397;
sub ccircumflex -> uniE399;
sub cdotaccent -> uniE39B;
sub ccaron -> uniE39D;
sub dcaron -> uniE39F;
sub dcroat -> uniE3A1;
sub emacron -> uniE3A3;
sub ebreve -> uniE3A5;
sub edotaccent -> uniE3A7;
sub eogonek -> uniE3A9;
sub ecaron -> uniE3AB;
sub gcircumflex -> uniE3AD;
sub gbreve -> uniE3AF;
sub gdotaccent -> uniE3B1;
sub gcommaaccent -> uniE3B3;
sub hcircumflex -> uniE3B5;
sub hbar -> uniE3B7;
sub itilde -> uniE3B9;
sub imacron -> uniE3BB;
sub ibreve -> uniE3BD;
sub iogonek -> uniE3BD;
sub ij -> uniE3C3;
sub jcircumflex -> uniE3C5;
sub kcommaaccent -> uniE3C7;
sub lacute -> uniE3CA;
sub lcommaaccent -> uniE3CC;
sub lcaron -> uniE3CE;
sub ldot -> uniE3D0;
sub lslash -> uniE3D2;
sub nacute -> uniE3D4;
sub ncommaaccent -> uniE3D6;
sub ncaron -> uniE3D8;
sub eng -> uniE3DB;
sub omacron -> uniE3DD;
sub obreve -> uniE3DF;
sub ohungarumlaut -> uniE3E1;
sub oe -> uniE3E3;
sub racute -> uniE3E5;
sub rcommaaccent -> uniE3E7;
sub rcaron -> uniE3E9;
sub sacute -> uniE3EB;
sub scircumflex -> uniE3ED;
sub scedilla -> uniE3EF;
sub scaron -> uniE3F1;
sub tcommaaccent -> uniE3F3;
sub tcaron -> uniE3F5;
sub tbar -> uniE3F7;
sub utilde -> uniE3F9;
sub umacron -> uniE3FB;
sub ubreve -> uniE3FD;
sub uring -> uniE3FF;
sub uhungarumlaut -> uniE401;
sub uogonek -> uniE403;
sub wcircumflex -> uniE405;
sub ycircumflex -> uniE407;
sub zacute -> uniE40A;
sub zdotaccent -> uniE40C;
sub zcaron -> uniE40E;
sub uni01F5 -> uniE485;
sub aringacute -> uniE48B;
sub aeacute -> uniE48D;
sub oslashacute -> uniE48F;
sub scommaaccent -> uniE4A9;
sub uni021B -> uniE4AB;
sub iotadieresistonos -> uniE238;
sub alphatonos -> uniE254;
sub epsilontonos -> uniE255;
sub etatonos -> uniE256;
sub iotatonos -> uniE257;
sub upsilondieresistonos -> uniE258;
sub [alpha - sigma1] -> [uniE259 - uniE26B];
sub [tau - omega] -> [uniE26C - uniE659];
sub iotadieresis -> uniE272;
sub upsilondieresis -> uniE273;
sub omicrontonos -> uniE274;
sub upsilontonos -> uniE275;
sub omegatonos -> uniE276;
sub uni1E0D -> uniE92D;
sub uni1E25 -> uniE945;
sub uni1E37 -> uniE957;
sub uni1E39 -> uniE959;
sub uni1E41 -> uniE961;
sub uni1E43 -> uniE963;
sub uni1E45 -> uniE965;
sub uni1E47 -> uniE967;
sub uni1E5B -> uniE97B;
sub uni1E5D -> uniE97D;
sub uni1E63 -> uniE983;
sub uni1E6D -> uniE98D;
sub wgrave -> uniE9A1;
sub wacute -> uniE9A3;
sub wdieresis -> uniE9A5;
sub ygrave -> uniEA13;
sub uni1EF9 -> uniEA19;
}
feature ligatures liga {
lookup ligaSub;
}
lookup ligaSub {
sub f f i -> ffi;
sub f f l -> ffl;
sub f f t -> fft;
sub f f y -> ffy;
sub f t y -> fty;
sub f f -> ff;
sub f i -> fi;
sub f j -> fj;
sub f l -> fl;
sub f r -> fr;
sub f t -> ft;
sub f y -> fy;
sub t r -> tr;
sub t t -> tt;
sub t y -> ty;
sub longs t -> longst;
}
feature discretionaryligatures dlig {
lookup dligSub;
}
lookup dligSub {
sub c k -> ck;
sub c t -> ct;
sub s p -> sp;
sub s t -> st;
sub t z -> tz;
sub Q u -> Qu;
sub T h -> Th;
}
by Laenglic