Re: #6920: Bug in typing a period (or comma) after the word "fine."

2010-10-12 Thread Abdelrazak Younes

On 10/12/2010 05:34 PM, Jean-Marc Lasgouttes wrote:

Le 11 oct. 10 à 23:59, Pavel Sanda a écrit :

John Mac wrote:

How do you enable / disable ligatures onscreen?


i dont think we can order qt for (not) doing this. but you can try to 
find some font
which is not intelligent enough (if you find it, then report back for 
other people...)


or we could make sure that we honor ligatures when computing metrics.


That may well be the issue indeed because AFAIK metrics are computed 
character by character in order to correctly position the cursor.


Abdel.




Re: #6920: Bug in typing a period (or comma) after the word "fine."

2010-10-12 Thread Jean-Marc Lasgouttes

Le 11 oct. 10 à 23:59, Pavel Sanda a écrit :

John Mac wrote:

How do you enable / disable ligatures onscreen?


i dont think we can order qt for (not) doing this. but you can try  
to find some font
which is not intelligent enough (if you find it, then report back  
for other people...)


or we could make sure that we honor ligatures when computing metrics.

JMarc

Re: #6920: Bug in typing a period (or comma) after the word "fine."

2010-10-12 Thread Abdelrazak Younes

On 10/11/2010 11:59 PM, Pavel Sanda wrote:

John Mac wrote:
   

How do you enable / disable ligatures onscreen?
 

i dont think we can order qt for (not) doing this.


Of course we can. It is just a matter of painting character by character 
instead of by word.


If you know a bit of C++, the code is in rowpainter.cpp. The idea would 
be to add a check for potential ligature before the word is painted and 
to stop before the painting. This would be similar to the technique used 
for font changes.


Abdel.



Re: #6920: Bug in typing a period (or comma) after the word "fine."

2010-10-11 Thread Pavel Sanda
John Mac wrote:
> How do you enable / disable ligatures onscreen?

i dont think we can order qt for (not) doing this. but you can try to find some 
font
which is not intelligent enough (if you find it, then report back for other 
people...)

pavel


Re: #6920: Bug in typing a period (or comma) after the word "fine."

2010-10-11 Thread John Mac
How do you enable / disable ligatures onscreen?


BYW, my OS is a MacOSX (Leopard).


On Mon, Oct 4, 2010 at 9:23 AM, LyX Ticket Tracker  wrote:

> #6920: Bug in typing a period (or comma) after the word "fine."
>
> --+-
>  Reporter:  john3mac  |   Owner:  lasgouttes
> Type:  defect|  Status:  new
>  Priority:  normal|   Milestone:  2.0.0
> Component:  general   | Version:
>  Severity:  normal|Keywords:
>
> --+-
> Changes (by sanda):
>
>  * keywords:  infoneeded =>
>  * milestone:  => 2.0.0
>
>
> Comment:
>
>  ok at least its clear why does it show only on certain systems - those who
>  have enabled ligatures onscreen.
>
> --
> Ticket URL: <http://www.lyx.org/trac/ticket/6920#comment:5>
> The LyX Project <http://www.lyx.org/>
> LyX -- The Document Processor
>