summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXFont.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-09-08 09:51:24 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-09-08 09:51:24 (GMT)
commited2ce0944c118c4f1e5908d9b1807225e69a2a95 (patch)
tree9d92014e32eae3dfe4705ff4bbe980765619dd6b /macosx/tkMacOSXFont.c
parent95066d6a47e1773c5e3e5a80cee70781b53cefa8 (diff)
parentefc488166a919c7e40608d52deb5eeea5debeecd (diff)
downloadtk-ed2ce0944c118c4f1e5908d9b1807225e69a2a95.zip
tk-ed2ce0944c118c4f1e5908d9b1807225e69a2a95.tar.gz
tk-ed2ce0944c118c4f1e5908d9b1807225e69a2a95.tar.bz2
Merge 8.6
Diffstat (limited to 'macosx/tkMacOSXFont.c')
-rw-r--r--macosx/tkMacOSXFont.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/macosx/tkMacOSXFont.c b/macosx/tkMacOSXFont.c
index 1d4de67..f0e1d15 100644
--- a/macosx/tkMacOSXFont.c
+++ b/macosx/tkMacOSXFont.c
@@ -244,7 +244,7 @@ FindNSFont(
NSString *family;
if (familyName) {
- family = [[[NSString alloc] initWithUTF8String:familyName] autorelease];
+ family = [[[TKNSString alloc] initWithTclUtfBytes:familyName length:-1] autorelease];
} else {
family = [defaultFont familyName];
}
@@ -1254,7 +1254,6 @@ TkpDrawCharsInContext(
* whole (not just the range) string when
* drawing. */
{
- (void)display;
TkpDrawAngledCharsInContext(display, drawable, gc, tkfont, source, numBytes,
rangeStart, rangeLength, x, y, 0.0);
}