maposmatic-dev
[Top][All Lists]
Advanced

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

Re: [Maposmatic-dev] [PATCH 3/4] Use Pango to draw the index and map tit


From: Maxime Petazzoni
Subject: Re: [Maposmatic-dev] [PATCH 3/4] Use Pango to draw the index and map titles
Date: Fri, 12 Feb 2010 09:34:34 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

Hi,

* Thomas Petazzoni <address@hidden> [2010-02-11 23:25:18]:

> -import cairo, logging
> +import cairo, logging, pango, pangocairo

Same comment on imports.

> -    _, _, width, _, _, _ = ctx.text_extents(title)

Thanks for getting rid of this ugly one.

> +    pc = pangocairo.CairoContext(ctx)
> +    layout = pc.create_layout()
> +    fd = pango.FontDescription("DejaVu")

Font name!

> diff --git a/ocitysmap/i18n.py b/ocitysmap/i18n.py
> index fec6e3b..eea669a 100644
> --- a/ocitysmap/i18n.py
> +++ b/ocitysmap/i18n.py
> @@ -44,7 +44,7 @@ class i18n:
>          pass
>  
>      def isrtl(self):
> -        return False
> +        return True

Uh?

- Maxime
-- 
Maxime Petazzoni <http://www.bulix.org>
 ``One by one, the penguins took away my sanity.''
Linux kernel and software developer at MontaVista Software

Attachment: signature.asc
Description: Digital signature


reply via email to

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