Output the Postscript font name.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@39999 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2016-07-15 17:10:21 +00:00
parent 3518d533a8
commit 879abf5d3b
2 changed files with 13 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2016-07-15 Fred Kiefer <FredKiefer@gmx.de>
* Source/gsc/GSStreamContext.m:
Output the Postscript font name.
2016-06-16 Ivan Vucica <ivan@vucica.net>
* ANNOUNCE:

View file

@ -264,8 +264,14 @@ fpfloat(FILE *stream, float f)
- (void) GSSetFont: (void *)fontref
{
const CGFloat *m = [(GSFontInfo *)fontref matrix];
fprintf(gstream, "/%s findfont ",
[[(GSFontInfo *)fontref fontName] cString]);
NSString *postscriptName;
postscriptName = [[(GSFontInfo *)fontref fontDescriptor] postscriptName];
if (nil == postscriptName)
{
postscriptName = [(GSFontInfo *)fontref fontName];
}
fprintf(gstream, "/%s findfont ", [postscriptName cString]);
fprintf(gstream, "[");
fpfloat(gstream, m[0]);
fpfloat(gstream, m[1]);