From 6f384e4c642d99b297378c0ecb1721e3e88e3af5 Mon Sep 17 00:00:00 2001 From: Jez Nicholson Date: Tue, 23 Jan 2018 12:37:43 +0000 Subject: [PATCH] tweak layout --- TextSymbolizer.md | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/TextSymbolizer.md b/TextSymbolizer.md index 6ce83fd..37f1304 100644 --- a/TextSymbolizer.md +++ b/TextSymbolizer.md @@ -1,4 +1,8 @@ -## Configuration Options for TextSymbolizer +Specifies the rendering of text at a point or along a line (for example, for a road name). + +[[/images/output_old.png]] + +## Configuration Options ### Options for whole Symbolizer | *parameter* | *values/ type* | *description* | *unit* | *default* | *version* | ----------------|---------|----------------|-------|------------|---------| @@ -39,7 +43,7 @@ ### Character formatting options | *parameter* | *values/ type* | *description* | *unit* | *default* | *version* | ----------------|---------|----------------|-------|------------|---------| -|face-name|string| Font name (see [[UsingCustomFonts]])| | | +|face-name|string| Font name (font must be registered in mapnik or you won't see anything. see [[UsingCustomFonts]]) | | | |fontset-name|string| FontSet name || |size|double|Font size|px|10.0| |fill|color|Color of the text fill, e.g. #FFFFFF||black| @@ -59,22 +63,18 @@ ## Examples -Some examples of Mapnik's ability to place text along lines: - -[[/images/output_old.png]] - ### XML - - ```xml -[FIELD_NAME] + + [FIELD_NAME] + ``` -See [[XMLGettingStarted]] for more XML example uses of TextSymbolizer. - ### Python - ```python t = TextSymbolizer(Expression('[FIELD_NAME]'), 'DejaVu Sans Book', 10, Color('black')) t.halo_fill = Color('white') @@ -85,7 +85,6 @@ dir(t) # for the rest of the attributes ### C++ - ```cpp #include #include