Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/m/a/mapnik-utils-HEAD/trunk/nik2img/mapnik_utils/fonts.py   mapnik-utils(Download)
    def add_fonts(self,fonts):
        engine = mapnik.FontEngine.instance()
        for font in fonts:
            if engine.register_font(font):
                self.added.append(font)

src/n/i/nik2img-0.8.0/mapnik_utils/fonts.py   nik2img(Download)
    def add_fonts(self,fonts):
        engine = mapnik.FontEngine.instance()
        for font in fonts:
            if os.path.isdir(font):
                found = False;