mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-23 11:51:27 +00:00
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:
parent
3518d533a8
commit
879abf5d3b
2 changed files with 13 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue