Skip navigation.
 
mlRe: NSTextView text changes size
FROM : Daryn
DATE : Thu Nov 28 00:45:12 2002

On Wednesday, November 27, 2002, at 03:06  PM, Douglas Davidson wrote:
> If you really don't care what font is used, you can do what you are
> doing, i.e. never specify a font and let the text view figure one out
> for itself.  If you do care, then set the font yourself, either via
> the NSTextView, by calling setTypingAttributes: or setFont:, or else
> by operating on the NSTextStorage and setting a font attribute there.


If the strings being appended are attributed strings, using these
messages to force a font cause the existing front traits such as
boldness to be lost as well (last I checked).

> Multiple fonts not allowed merely means that the user is not allowed
> to set multiple fonts.  Programmatic changes are a different matter.


How would one go about preventing programatic changes?  What part of
the text system does the automatic font substitution?  Essentially what
method(s) can be overridden to lock in a font?

Daryn
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlNSTextView text changes size Chris Ridd Nov 27, 21:46
mlRe: NSTextView text changes size Scott Anguish Nov 27, 21:56
mlRe: NSTextView text changes size Douglas Davidson Nov 27, 22:06
mlRe: NSTextView text changes size Daryn Nov 28, 00:45
mlRe: NSTextView text changes size Douglas Davidson Nov 28, 00:57
mlRe: NSTextView text changes size Chris Ridd Nov 28, 10:45