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 palatinolinotyperoman palatinolinotyperoman /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