texmacs-dev
[Top][All Lists]
Advanced

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

Re: [Texmacs-dev] font menu problem in linux


From: Sam Liddicott
Subject: Re: [Texmacs-dev] font menu problem in linux
Date: Tue, 04 Jan 2011 21:51:11 -0000

The use of locate is not optimal and worse if your locate DB is large. It would 
be better to "locate ttf" and cache the results and then grep  for each font 
instead of calling locate each time.

Sam

"Philippe Joyez" <address@hidden> wrote:

>
>
>Hi all,
>
>On Ubuntu 10.4 with texmacs recently compiled, the first time you try
>to
>open a font menu (even accidentally) the system practically hangs. This
>happens each time texmacs is restarted.
>
>The reason is that for constructing the menu the program tries to
>"locate" a
>large number of fonts each with multiple extension variant, and each
>"locate" takes 8 seconds to complete on my system. Meanwhile it seems
>texmacs is not giving back the focus or something of the sort: the
>mouse is
>moving, other windows are updated, but you cannot switch app (neither
>using
>the mouse nor the keyboard). As a result, if I wait for the completion
>of
>this exploration, my system is unsuable for 15 plain minutes! Of course
>I'am
>not that patient so I switch to the console and kill texmacs...
>
>I could solve this problem by comenting out a line in init_texmacs.cpp
>so
>that "use_locate" remains false. I don't know what other functionality
>might
>be affected by this change, though.
>
>Philippe
>-- 
>View this message in context:
>http://old.nabble.com/font-menu-problem-in-linux-tp30590640p30590640.html
>Sent from the Gnu - Texmacs - Dev mailing list archive at Nabble.com.
>
>
>_______________________________________________
>Texmacs-dev mailing list
>address@hidden
>http://lists.gnu.org/mailman/listinfo/texmacs-dev

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.



reply via email to

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