mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-24 04:11:28 +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>
|
2016-06-16 Ivan Vucica <ivan@vucica.net>
|
||||||
|
|
||||||
* ANNOUNCE:
|
* ANNOUNCE:
|
||||||
|
|
|
@ -264,8 +264,14 @@ fpfloat(FILE *stream, float f)
|
||||||
- (void) GSSetFont: (void *)fontref
|
- (void) GSSetFont: (void *)fontref
|
||||||
{
|
{
|
||||||
const CGFloat *m = [(GSFontInfo *)fontref matrix];
|
const CGFloat *m = [(GSFontInfo *)fontref matrix];
|
||||||
fprintf(gstream, "/%s findfont ",
|
NSString *postscriptName;
|
||||||
[[(GSFontInfo *)fontref fontName] cString]);
|
|
||||||
|
postscriptName = [[(GSFontInfo *)fontref fontDescriptor] postscriptName];
|
||||||
|
if (nil == postscriptName)
|
||||||
|
{
|
||||||
|
postscriptName = [(GSFontInfo *)fontref fontName];
|
||||||
|
}
|
||||||
|
fprintf(gstream, "/%s findfont ", [postscriptName cString]);
|
||||||
fprintf(gstream, "[");
|
fprintf(gstream, "[");
|
||||||
fpfloat(gstream, m[0]);
|
fpfloat(gstream, m[0]);
|
||||||
fpfloat(gstream, m[1]);
|
fpfloat(gstream, m[1]);
|
||||||
|
|
Loading…
Reference in a new issue