Re: default font in chaco.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: default font in chaco.

Pierre Tardy
Any comment about kiva's font-manager?

Are you interested in solving the problem?

Probably I did not hit the correct list. follow-up on enthought-dev

Regards,
Pierre
On Mon, Apr 26, 2010 at 4:48 PM, Pierre Tardy <[hidden email]> wrote:

> Hello,
>
> Enable keeps choosing a random default font on linux (ubuntu; fedora)
>
> I apply the following workaround to use DejaVuSans which is available
> on most modern linux distrib.
>
>
> diff --git a/enthought/kiva/fonttools/font_manager.py
> b/enthought/kiva/fonttools/font_manager.py
> index b77b5a8..bc738c5 100644
> --- a/enthought/kiva/fonttools/font_manager.py
> +++ b/enthought/kiva/fonttools/font_manager.py
> @@ -879,6 +879,9 @@ font dictionary can act like a font cache.
>             if fname.lower().find('vera.ttf')>=0:
>                 self.defaultFont = fname
>                 break
> +            if fname.lower().find('sans.ttf')>=0:
> +                self.defaultFont = fname
> +                break
>         else:
>             # use anything
>             if len(self.ttffiles) > 0:
>
>
> --
> Pierre
>



--
Pierre
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: default font in chaco.

Peter Wang
Hi Pierre,

Thanks for pointing out this problem.  I will take a look at this
tomorrow; I've been out of the office for personal reasons and am
trying to get back into the swing of things.

Thanks for your patience,
Peter

On Sat, May 1, 2010 at 10:00 AM, Pierre Tardy <[hidden email]> wrote:

> Any comment about kiva's font-manager?
>
> Are you interested in solving the problem?
>
> Probably I did not hit the correct list. follow-up on enthought-dev
>
> Regards,
> Pierre
> On Mon, Apr 26, 2010 at 4:48 PM, Pierre Tardy <[hidden email]> wrote:
>> Hello,
>>
>> Enable keeps choosing a random default font on linux (ubuntu; fedora)
>>
>> I apply the following workaround to use DejaVuSans which is available
>> on most modern linux distrib.
>>
>>
>> diff --git a/enthought/kiva/fonttools/font_manager.py
>> b/enthought/kiva/fonttools/font_manager.py
>> index b77b5a8..bc738c5 100644
>> --- a/enthought/kiva/fonttools/font_manager.py
>> +++ b/enthought/kiva/fonttools/font_manager.py
>> @@ -879,6 +879,9 @@ font dictionary can act like a font cache.
>>             if fname.lower().find('vera.ttf')>=0:
>>                 self.defaultFont = fname
>>                 break
>> +            if fname.lower().find('sans.ttf')>=0:
>> +                self.defaultFont = fname
>> +                break
>>         else:
>>             # use anything
>>             if len(self.ttffiles) > 0:
>>
>>
>> --
>> Pierre
>>
>
>
>
> --
> Pierre
> _______________________________________________
> Enthought-Dev mailing list
> [hidden email]
> https://mail.enthought.com/mailman/listinfo/enthought-dev
>
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev