Re: Make characters same width in textview
Re: Make characters same width in textview
- Subject: Re: Make characters same width in textview
- From: Millennium <email@hidden>
- Date: Sat, 16 Mar 2002 16:01:34 -0500
Exactly. Monospaced fonts are considered the way to do this. Courier and
Monaco come with all Macs, and should fit your needs well (Courier has
serifs, Monaco does not).
It's just a matter of setting the TextView's font to Courier or Monaco;
whichever you feel is appropriate. For readability concerns, you should
probably display Monaco but print Courier.
>
Why don't you just use a fixed width font as the font for the text view?
>
>
Eric
>
>
On Saturday, March 16, 2002, at 01:51 PM, email@hidden wrote:
>
>
> I am setting the string of a NSTextView and I would like the characters
>
> to all be the same width. I am creating a table from a database query
>
> and of course things lining up correctly is of upmost importance.
>
> Eventually, I will be using table view but I wanted to get this working
>
> first. Nothing looked like what I was looking for in the docs but then
>
> again I don't know the term for "having characters of the same width".
>
> Perhaps someone could point me in the right direction or provide sample
>
> code for this?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.