Help in Text Disaplaying
Help in Text Disaplaying
- Subject: Help in Text Disaplaying
- From: Anoop <email@hidden>
- Date: Tue, 07 Mar 2006 19:01:31 +0530
Hai,
I tried to add some integer Value as a text in View while I am drawing. But
the integer coming is the mirror image of some integer.PLEASE help me to
resolve it.
Codes that I have given are
I gave thiis in BezierPath
NSFont *myFont=[NSFont fontWithName:@"Tahoma" size:5.0];
NSLayoutManager *myLayoutManager = [[NSLayoutManager alloc] init];
NSString *string=[NSString stringWithFormat:@"%f",f];
NSTextStorage *myTextStorage = [[NSTextStorage allocWithZone:[self
zone]]
initWithString:string attributes:[NSDictionary
dictionaryWithObjectsAndKeys:[NSFont fontWithName:@"Courier" size:10.0],
NSFontAttributeName, nil]];
[myTextStorage addLayoutManager:myLayoutManager];
[path appendBezierPathWithGlyph:[myLayoutManager glyphAtIndex:0]
inFont:myFont];
f=NSMaxX(bounds);
[myTextStorage addLayoutManager:myLayoutManager];
//Inserting Storage Text in Layout Manager
myFont = [myTextStorage attribute:NSFontAttributeName atIndex:0
effectiveRange:NULL];
[path appendBezierPathWithGlyph:[myLayoutManager glyphAtIndex:0]
inFont:myFont];
Kindly help me.
--
With Regards,
Anoop
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden