[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bidirectional text in tooltips

From: Jan Djärv
Subject: Re: Bidirectional text in tooltips
Date: Sat, 06 Nov 2010 18:28:58 +0100
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv: Gecko/20101004 Thunderbird/3.1.5

Eli Zaretskii skrev 2010-11-06 15.14:

The other case is NS.  IIUC, the place that calculates the width of
the tooltip is the setText method of the EmacsTooltip class,
implemented on nsmenu.m.  My reading of the setText method is that it
assumes a single line of text in the tip, is that right?  If so,
that's a bug in itself, I think.

It does not, sizeWithAttributes returns the bounding box the drawn string would have. It handles newlines.

        Jan D.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]