Re: [NTG-context] OSX fonts
Ah thanks to all! I’ll dive into it Best -a- -- Andrea Valle -- CIRMA - StudiUm Università degli Studi di Torino --> http://www.cirma.unito.it/andrea/ --> http://www.fonurgia.unito.it/andrea/ --> http://www.flickr.com/photos/vanderaalle/sets/ --> http://vimeo.com/vanderaalle --> andrea.va...@unito.it -- "This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous." (Jeffrey 'The Dude' Lebowski) > On 3 Apr 2017, at 21:07, Aditya Mahajan wrote: > > On Mon, 3 Apr 2017, Andrea Valle wrote: > >> Dear list, >> >> I have a question which is really basic. MacOSX here. >> I looked at the wiki, but the whole matter is a bit far from my knowledge. >> Is there a way to use system fonts? I *think* I remember something like >> simpletypescript package > > > 1. First, let's check if context is seeing the fonts that ship with OSX. > > mtxrun --script fonts --list --pattern="palatino*" --all > > palatino palatinobolditalic > /System/Library/Fonts/Palatino.ttc index: 4 > palatinobold palatinobolditalic > /System/Library/Fonts/Palatino.ttc index: 4 > palatinobolditalic palatinobolditalic > /System/Library/Fonts/Palatino.ttc index: 4 > palatinolinotype palatinolinotyperoman > /Library/Fonts/Microsoft/Palatino Linotype.ttf > palatinolinotypebold palatinolinotypebold > /Library/Fonts/Microsoft/Palatino Linotype Bold.ttf > palatinolinotypebolditalic palatinolinotypebolditalic > /Library/Fonts/Microsoft/Palatino Linotype Bold Italic.ttf > palatinolinotypeitalic palatinolinotypeitalic > /Library/Fonts/Microsoft/Palatino Linotype Italic.ttf > palatinolinotypenormal palatinolinotyperoman > /Library/Fonts/Microsoft/Palatino Linotype.ttf > palatinolinotyperegular palatinolinotyperoman > /Library/Fonts/Microsoft/Palatino Linotype.ttf > palatinolinotyperomanpalatinolinotyperoman > /Library/Fonts/Microsoft/Palatino Linotype.ttf > > OK. So, I have a palatino that ships with apple and Palatino Linotype that > ships with Microsoft Office (I think). > > 2. Let's create a typescript to use this (I haven't check the font license to > see if you can distribute a pdf of this document. Please check your font > license!): > > \definefontfamily [myfont] [serif] [Palatino Linotype] > \setupbodyfont [myfont] > > \starttext > This is a test \bold{Does bold work} and does \italic{italic}? > \stoptext > > That's it! Simply compile the file and everything works. Of course, for a > real document, you need to set the sans serif, mono, and math font style as > well. > > Aditya > ___ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ > ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] OSX fonts
On Mon, 3 Apr 2017, Andrea Valle wrote: Dear list, I have a question which is really basic. MacOSX here. I looked at the wiki, but the whole matter is a bit far from my knowledge. Is there a way to use system fonts? I *think* I remember something like simpletypescript package 1. First, let's check if context is seeing the fonts that ship with OSX. mtxrun --script fonts --list --pattern="palatino*" --all palatino palatinobolditalic /System/Library/Fonts/Palatino.ttc index: 4 palatinobold palatinobolditalic /System/Library/Fonts/Palatino.ttc index: 4 palatinobolditalic palatinobolditalic /System/Library/Fonts/Palatino.ttc index: 4 palatinolinotype palatinolinotyperoman /Library/Fonts/Microsoft/Palatino Linotype.ttf palatinolinotypebold palatinolinotypebold /Library/Fonts/Microsoft/Palatino Linotype Bold.ttf palatinolinotypebolditalic palatinolinotypebolditalic /Library/Fonts/Microsoft/Palatino Linotype Bold Italic.ttf palatinolinotypeitalic palatinolinotypeitalic /Library/Fonts/Microsoft/Palatino Linotype Italic.ttf palatinolinotypenormal palatinolinotyperoman /Library/Fonts/Microsoft/Palatino Linotype.ttf palatinolinotyperegular palatinolinotyperoman /Library/Fonts/Microsoft/Palatino Linotype.ttf palatinolinotyperomanpalatinolinotyperoman /Library/Fonts/Microsoft/Palatino Linotype.ttf OK. So, I have a palatino that ships with apple and Palatino Linotype that ships with Microsoft Office (I think). 2. Let's create a typescript to use this (I haven't check the font license to see if you can distribute a pdf of this document. Please check your font license!): \definefontfamily [myfont] [serif] [Palatino Linotype] \setupbodyfont [myfont] \starttext This is a test \bold{Does bold work} and does \italic{italic}? \stoptext That's it! Simply compile the file and everything works. Of course, for a real document, you need to set the sans serif, mono, and math font style as well. Aditya ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] OSX fonts
Am 2017-04-03 um 16:07 schrieb Andrea Valle : > I have a question which is really basic. MacOSX here. > I looked at the wiki, but the whole matter is a bit far from my knowledge. > Is there a way to use system fonts? I *think* I remember something like > simpletypescript package See http://wiki.contextgarden.net/Fonts_in_LuaTeX Depends a bit on the actual fonts. Usually it’s no problem to use system fonts. You need to setup the variable OSFONTDIR as a path to your font directories, e.g.: export OSFONTDIR="/System/Library/Fonts//:/Library/Fonts//:~/Library/Fonts//:~/Library/texmf/fonts//:~/FontExplorer\\ X/Font\\ Library//" Put this in ~/.bashrc, ~/.bash_profile or ~/.profile (don’t know any more which is default). Then reload the font database: mtxrun --script fonts --reload Try, if your desired font is already known, e.g. \setupbodyfont[gentium,rm,10pt] Or check if there is a typescript in the distribution (look for the font name in the source browser). If not, then you should setup a typescript. I attached examples. If that doesn’t help, ask with details. Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD type-alegreya.tex Description: Binary data type-devroye.tex Description: Binary data ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] OSX fonts
Dear list, I have a question which is really basic. MacOSX here. I looked at the wiki, but the whole matter is a bit far from my knowledge. Is there a way to use system fonts? I *think* I remember something like simpletypescript package Thanks, sorry for the dumbness -a- -- Andrea Valle -- CIRMA - StudiUm Università degli Studi di Torino --> http://www.cirma.unito.it/andrea/ --> http://www.fonurgia.unito.it/andrea/ --> http://www.flickr.com/photos/vanderaalle/sets/ --> http://vimeo.com/vanderaalle --> andrea.va...@unito.it -- "This is a very complicated case, Maude. You know, a lotta ins, a lotta outs, a lotta what-have-yous." (Jeffrey 'The Dude' Lebowski) ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___