Hi, * Thomas Petazzoni <[email protected]> [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
signature.asc
Description: Digital signature
