def font(self, font): """ Sets the font for this label. The ``font`` argument is a string describing the font attributes. See :class:`Font <geoscript.style.font.Font>` for supported syntax. >>> label = Label('foo').font('italic bold 12px "Times New Roman"') """ self._font = Font(font) return self
def __init__(self, property, font=None, color=None, priority=None, options=None): Symbolizer.__init__(self) self.property = Property(property) self.color = Color(color) if color else None self.priority = Property(priority) if priority else None self.options = options if options else {} self._font = Font(font) if font else None self._halo = None self._icon = None self._placement = None