Hello, I have some troubles using the Symbola font mentioned some time ago on the mailing list (http://users.teilar.gr/~g1951d/Symbola602.zip). It seems like the font metrics are loaded correctly, but the glyphs in the pdf appear approximately half the size, leaving white space above and next to it. Here is a minimal example: \starttext Gg {\definedfont[file:Symbola602.otf]Gg} Gg \stoptext If I use \definedfont[file:Symbola602.otf sa 2], the glyphs are more or less the good size, but the metrics are way too large. I have no problems with this font in OpenOffice. Any ideas? Vianney
On 12 feb. 2011, at 20:48, Vianney le Clément
If I use \definedfont[file:Symbola602.otf sa 2], the glyphs are more or less the good size, but the metrics are way too large. I have no problems with this font in OpenOffice.
How old is your luatex and context combination? It sounds like a bug we fixed a while ago (the font is probably a postscript font with an abnormal units per em setting) Best wishes, Taco
On Sat, Feb 12, 2011 at 21:09, Taco Hoekwater
How old is your luatex and context combination? It sounds like a bug we fixed a while ago (the font is probably a postscript font with an abnormal units per em setting)
Thanks for your answer. I'm using the latest context beta minimals (updated today): ConTeXt - 2011.02.11 18:18 and LuaTeX-0.65.0. Is there a newer version fixing the problem? Vianney
On Sat, Feb 12, 2011 at 9:09 PM, Taco Hoekwater
On 12 feb. 2011, at 20:48, Vianney le Clément
wrote: If I use \definedfont[file:Symbola602.otf sa 2], the glyphs are more or less the good size, but the metrics are way too large. I have no problems with this font in OpenOffice.
How old is your luatex and context combination? It sounds like a bug we fixed a while ago (the font is probably a postscript font with an abnormal units per em setting)
No, it's a truetype font with 2048 UnitsPerEm. This font has not kerning at all: it is only usable as .. symbol ! :-)
Best wishes,
Taco ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
-- luigi
On Sun, Feb 13, 2011 at 08:03, luigi scarso
No, it's a truetype font with 2048 UnitsPerEm. This font has not kerning at all: it is only usable as .. symbol ! :-)
It is indeed what I want: use it as a symbol font. But even when trying to access symbols like this: \definesymbol[Masks][{\definedfont[file:Symbola602.otf sa *]\char"1F3AD}] I still have the problem that the glyphs are too small. Do you have a better way to access the symbols and have them at the right size? Thanks, Vianney
On 02/13/2011 09:18 AM, Vianney le Clément wrote:
On Sun, Feb 13, 2011 at 08:03, luigi scarso
wrote: No, it's a truetype font with 2048 UnitsPerEm. This font has not kerning at all: it is only usable as .. symbol ! :-)
It is indeed what I want: use it as a symbol font. But even when trying to access symbols like this:
\definesymbol[Masks][{\definedfont[file:Symbola602.otf sa *]\char"1F3AD}]
I still have the problem that the glyphs are too small. Do you have a better way to access the symbols and have them at the right size?
It is an error in the context font loader, apparently. It seems it assumes that .otf == postscript. Something for Hans to look at. Renaming the font to Symbola602.ttf is a usable workaround (but you have to clear the font cache). Best wishes, Taco
2011/2/13 Taco Hoekwater
It is an error in the context font loader, apparently. It seems it assumes that .otf == postscript. Something for Hans to look at.
Renaming the font to Symbola602.ttf is a usable workaround (but you have to clear the font cache).
Best wishes, Taco
This workaround works perfectly. Now I can use all those neat symbols. Hartelijk bedankt. Vianney
2011/2/13 Vianney le Clément
On Sun, Feb 13, 2011 at 08:03, luigi scarso
wrote: No, it's a truetype font with 2048 UnitsPerEm. This font has not kerning at all: it is only usable as .. symbol ! :-)
It is indeed what I want: use it as a symbol font. But even when trying to access symbols like this:
\definesymbol[Masks][{\definedfont[file:Symbola602.otf sa *]\char"1F3AD}]
I still have the problem that the glyphs are too small. Do you have a better way to access the symbols and have them at the right size? \definedfont[file:Symbola602.otf sa 2] seems ok. Try \setupbodyfont[18pt] \starttext Gg {\definedfont[file:Symbola602.otf sa 2]Gg} Gg M{\definedfont[file:Symbola602.otf sa 2 ]\char"1F3AD}M and change \setupbodyfont to differents sizes. Symbols should look ok. \stoptext
-- luigi
On Sun, Feb 13, 2011 at 09:56, luigi scarso
\definedfont[file:Symbola602.otf sa 2] seems ok. Try \setupbodyfont[18pt] \starttext Gg {\definedfont[file:Symbola602.otf sa 2]Gg} Gg M{\definedfont[file:Symbola602.otf sa 2 ]\char"1F3AD}M and change \setupbodyfont to differents sizes. Symbols should look ok. \stoptext
-- luigi
The problem with "sa 2" is that the lineheight becomes too large and there is a lot of space at the right of the symbol. The glyphs look alright, but the metrics are twice too big. Renaming the file to .ttf as Taco suggests works fine though. Thanks both for your help. Vianney
2011/2/13 Vianney le Clément
On Sun, Feb 13, 2011 at 09:56, luigi scarso
wrote: \definedfont[file:Symbola602.otf sa 2] seems ok. Try \setupbodyfont[18pt] \starttext Gg {\definedfont[file:Symbola602.otf sa 2]Gg} Gg M{\definedfont[file:Symbola602.otf sa 2 ]\char"1F3AD}M and change \setupbodyfont to differents sizes. Symbols should look ok. \stoptext
-- luigi
The problem with "sa 2" is that the lineheight becomes too large and there is a lot of space at the right of the symbol. The glyphs look alright, but the metrics are twice too big. Renaming the file to .ttf as Taco suggests works fine though. Thanks both for your help. It seems something wrong with otf loader, as taco wrote \setupbodyfont[18pt] \definefont[Sym][file:Symbola602.otf sa 2] \starttext AAAAAAAAAAAA
AAA\ruledhbox{\Sym\char"1F3AD}AAAAAAAAAAA AAAAAAAAAAA \stoptext -- luigi
participants (3)
-
luigi scarso
-
Taco Hoekwater
-
Vianney le Clément