mapnik/tests/visual_tests/styles/text-font-features.xml
2014-12-04 21:19:13 +00:00

101 lines
16 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map[
<!ENTITY step "36">
<!ENTITY size1 "26">
<!ENTITY size2 "14">
]>
<Map background-color="white" font-directory="../fonts/glukfonts">
<Layer name="layer">
<StyleName>My Style</StyleName>
<Datasource>
<Parameter name="type">csv</Parameter>
<Parameter name="extent">-1,-1,1,1</Parameter>
<Parameter name="inline">
id, wkt, dx, features, text
1, "POINT(-0.95 0.9)", 270, "liga 1, dlig 1", "first"
2, "POINT(-0.95 0.9)", 350, "smcp 1", "The first"
3, "POINT(-0.95 0.9)", 500, "sups[1:] 1", "1st"
4, "POINT(-0.95 0.9)", 560, "frac 1, numr 1, dnom 1", "1/2 1/3 1/4"
5, "POINT(-0.95 0.9)", 750, "zero 1, onum 1", "0123456789"
6, "POINT(-0.95 0.9)", 950, "", ""
</Parameter>
</Datasource>
</Layer>
<Style name="My Style">
<Rule>
<Filter>[id] = 1</Filter>
<TextSymbolizer face-name="Foglihten Regular" size="&size2;" dx="-10" dy=" 0 * &step;" horizontal-alignment="right">"Foglihten Regular" </TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Bold" size="&size2;" dx="-10" dy=" 1 * &step;" horizontal-alignment="right">"DejaVu Sans Bold" </TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Bold Oblique" size="&size2;" dx="-10" dy=" 2 * &step;" horizontal-alignment="right">"DejaVu Sans Bold Oblique" </TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Book" size="&size2;" dx="-10" dy=" 3 * &step;" horizontal-alignment="right">"DejaVu Sans Book" </TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Condensed" size="&size2;" dx="-10" dy=" 4 * &step;" horizontal-alignment="right">"DejaVu Sans Condensed" </TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Condensed Bold" size="&size2;" dx="-10" dy=" 5 * &step;" horizontal-alignment="right">"DejaVu Sans Condensed Bold" </TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Condensed Bold Oblique" size="&size2;" dx="-10" dy=" 6 * &step;" horizontal-alignment="right">"DejaVu Sans Condensed Bold Oblique"</TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Condensed Oblique" size="&size2;" dx="-10" dy=" 7 * &step;" horizontal-alignment="right">"DejaVu Sans Condensed Oblique" </TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans ExtraLight" size="&size2;" dx="-10" dy=" 8 * &step;" horizontal-alignment="right">"DejaVu Sans ExtraLight" </TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Mono Bold" size="&size2;" dx="-10" dy=" 9 * &step;" horizontal-alignment="right">"DejaVu Sans Mono Bold" </TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Mono Bold Oblique" size="&size2;" dx="-10" dy="10 * &step;" horizontal-alignment="right">"DejaVu Sans Mono Bold Oblique" </TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Mono Book" size="&size2;" dx="-10" dy="11 * &step;" horizontal-alignment="right">"DejaVu Sans Mono Book" </TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Mono Oblique" size="&size2;" dx="-10" dy="12 * &step;" horizontal-alignment="right">"DejaVu Sans Mono Oblique" </TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Oblique" size="&size2;" dx="-10" dy="13 * &step;" horizontal-alignment="right">"DejaVu Sans Oblique" </TextSymbolizer>
<TextSymbolizer face-name="DejaVu Serif Bold" size="&size2;" dx="-10" dy="14 * &step;" horizontal-alignment="right">"DejaVu Serif Bold" </TextSymbolizer>
<TextSymbolizer face-name="DejaVu Serif Bold Italic" size="&size2;" dx="-10" dy="15 * &step;" horizontal-alignment="right">"DejaVu Serif Bold Italic" </TextSymbolizer>
<TextSymbolizer face-name="DejaVu Serif Book" size="&size2;" dx="-10" dy="16 * &step;" horizontal-alignment="right">"DejaVu Serif Book" </TextSymbolizer>
<TextSymbolizer face-name="DejaVu Serif Condensed" size="&size2;" dx="-10" dy="17 * &step;" horizontal-alignment="right">"DejaVu Serif Condensed" </TextSymbolizer>
<TextSymbolizer face-name="DejaVu Serif Condensed Bold" size="&size2;" dx="-10" dy="18 * &step;" horizontal-alignment="right">"DejaVu Serif Condensed Bold" </TextSymbolizer>
<TextSymbolizer face-name="DejaVu Serif Condensed Bold Italic" size="&size2;" dx="-10" dy="19 * &step;" horizontal-alignment="right">"DejaVu Serif Condensed Bold Italic"</TextSymbolizer>
<TextSymbolizer face-name="DejaVu Serif Condensed Italic" size="&size2;" dx="-10" dy="20 * &step;" horizontal-alignment="right">"DejaVu Serif Condensed Italic" </TextSymbolizer>
<TextSymbolizer face-name="DejaVu Serif Italic" size="&size2;" dx="-10" dy="21 * &step;" horizontal-alignment="right">"DejaVu Serif Italic" </TextSymbolizer>
</Rule>
<Rule>
<Filter>[id] != 6</Filter>
<TextSymbolizer face-name="Foglihten Regular" size="&size1;" dx="[dx]" dy=" 0 * &step;" horizontal-alignment="right" font-feature-settings="[features]">[text]</TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Bold" size="&size1;" dx="[dx]" dy=" 1 * &step;" horizontal-alignment="right" font-feature-settings="[features]">[text]</TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Bold Oblique" size="&size1;" dx="[dx]" dy=" 2 * &step;" horizontal-alignment="right" font-feature-settings="[features]">[text]</TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Book" size="&size1;" dx="[dx]" dy=" 3 * &step;" horizontal-alignment="right" font-feature-settings="[features]">[text]</TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Condensed" size="&size1;" dx="[dx]" dy=" 4 * &step;" horizontal-alignment="right" font-feature-settings="[features]">[text]</TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Condensed Bold" size="&size1;" dx="[dx]" dy=" 5 * &step;" horizontal-alignment="right" font-feature-settings="[features]">[text]</TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Condensed Bold Oblique" size="&size1;" dx="[dx]" dy=" 6 * &step;" horizontal-alignment="right" font-feature-settings="[features]">[text]</TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Condensed Oblique" size="&size1;" dx="[dx]" dy=" 7 * &step;" horizontal-alignment="right" font-feature-settings="[features]">[text]</TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans ExtraLight" size="&size1;" dx="[dx]" dy=" 8 * &step;" horizontal-alignment="right" font-feature-settings="[features]">[text]</TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Mono Bold" size="&size1;" dx="[dx]" dy=" 9 * &step;" horizontal-alignment="right" font-feature-settings="[features]">[text]</TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Mono Bold Oblique" size="&size1;" dx="[dx]" dy="10 * &step;" horizontal-alignment="right" font-feature-settings="[features]">[text]</TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Mono Book" size="&size1;" dx="[dx]" dy="11 * &step;" horizontal-alignment="right" font-feature-settings="[features]">[text]</TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Mono Oblique" size="&size1;" dx="[dx]" dy="12 * &step;" horizontal-alignment="right" font-feature-settings="[features]">[text]</TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Oblique" size="&size1;" dx="[dx]" dy="13 * &step;" horizontal-alignment="right" font-feature-settings="[features]">[text]</TextSymbolizer>
<TextSymbolizer face-name="DejaVu Serif Bold" size="&size1;" dx="[dx]" dy="14 * &step;" horizontal-alignment="right" font-feature-settings="[features]">[text]</TextSymbolizer>
<TextSymbolizer face-name="DejaVu Serif Bold Italic" size="&size1;" dx="[dx]" dy="15 * &step;" horizontal-alignment="right" font-feature-settings="[features]">[text]</TextSymbolizer>
<TextSymbolizer face-name="DejaVu Serif Book" size="&size1;" dx="[dx]" dy="16 * &step;" horizontal-alignment="right" font-feature-settings="[features]">[text]</TextSymbolizer>
<TextSymbolizer face-name="DejaVu Serif Condensed" size="&size1;" dx="[dx]" dy="17 * &step;" horizontal-alignment="right" font-feature-settings="[features]">[text]</TextSymbolizer>
<TextSymbolizer face-name="DejaVu Serif Condensed Bold" size="&size1;" dx="[dx]" dy="18 * &step;" horizontal-alignment="right" font-feature-settings="[features]">[text]</TextSymbolizer>
<TextSymbolizer face-name="DejaVu Serif Condensed Bold Italic" size="&size1;" dx="[dx]" dy="19 * &step;" horizontal-alignment="right" font-feature-settings="[features]">[text]</TextSymbolizer>
<TextSymbolizer face-name="DejaVu Serif Condensed Italic" size="&size1;" dx="[dx]" dy="20 * &step;" horizontal-alignment="right" font-feature-settings="[features]">[text]</TextSymbolizer>
<TextSymbolizer face-name="DejaVu Serif Italic" size="&size1;" dx="[dx]" dy="21 * &step;" horizontal-alignment="right" font-feature-settings="[features]">[text]</TextSymbolizer>
</Rule>
<Rule>
<Filter>[id] = 6</Filter>
<TextSymbolizer face-name="Foglihten Regular" size="&size1;" dx="[dx]" dy=" 0 * &step;" horizontal-alignment="right">"H"<Format font-feature-settings="subs 1">"2"</Format>"SO"<Format font-feature-settings="subs 1">"4"</Format></TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Bold" size="&size1;" dx="[dx]" dy=" 1 * &step;" horizontal-alignment="right">"H"<Format font-feature-settings="subs 1">"2"</Format>"SO"<Format font-feature-settings="subs 1">"4"</Format></TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Bold Oblique" size="&size1;" dx="[dx]" dy=" 2 * &step;" horizontal-alignment="right">"H"<Format font-feature-settings="subs 1">"2"</Format>"SO"<Format font-feature-settings="subs 1">"4"</Format></TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Book" size="&size1;" dx="[dx]" dy=" 3 * &step;" horizontal-alignment="right">"H"<Format font-feature-settings="subs 1">"2"</Format>"SO"<Format font-feature-settings="subs 1">"4"</Format></TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Condensed" size="&size1;" dx="[dx]" dy=" 4 * &step;" horizontal-alignment="right">"H"<Format font-feature-settings="subs 1">"2"</Format>"SO"<Format font-feature-settings="subs 1">"4"</Format></TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Condensed Bold" size="&size1;" dx="[dx]" dy=" 5 * &step;" horizontal-alignment="right">"H"<Format font-feature-settings="subs 1">"2"</Format>"SO"<Format font-feature-settings="subs 1">"4"</Format></TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Condensed Bold Oblique" size="&size1;" dx="[dx]" dy=" 6 * &step;" horizontal-alignment="right">"H"<Format font-feature-settings="subs 1">"2"</Format>"SO"<Format font-feature-settings="subs 1">"4"</Format></TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Condensed Oblique" size="&size1;" dx="[dx]" dy=" 7 * &step;" horizontal-alignment="right">"H"<Format font-feature-settings="subs 1">"2"</Format>"SO"<Format font-feature-settings="subs 1">"4"</Format></TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans ExtraLight" size="&size1;" dx="[dx]" dy=" 8 * &step;" horizontal-alignment="right">"H"<Format font-feature-settings="subs 1">"2"</Format>"SO"<Format font-feature-settings="subs 1">"4"</Format></TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Mono Bold" size="&size1;" dx="[dx]" dy=" 9 * &step;" horizontal-alignment="right">"H"<Format font-feature-settings="subs 1">"2"</Format>"SO"<Format font-feature-settings="subs 1">"4"</Format></TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Mono Bold Oblique" size="&size1;" dx="[dx]" dy="10 * &step;" horizontal-alignment="right">"H"<Format font-feature-settings="subs 1">"2"</Format>"SO"<Format font-feature-settings="subs 1">"4"</Format></TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Mono Book" size="&size1;" dx="[dx]" dy="11 * &step;" horizontal-alignment="right">"H"<Format font-feature-settings="subs 1">"2"</Format>"SO"<Format font-feature-settings="subs 1">"4"</Format></TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Mono Oblique" size="&size1;" dx="[dx]" dy="12 * &step;" horizontal-alignment="right">"H"<Format font-feature-settings="subs 1">"2"</Format>"SO"<Format font-feature-settings="subs 1">"4"</Format></TextSymbolizer>
<TextSymbolizer face-name="DejaVu Sans Oblique" size="&size1;" dx="[dx]" dy="13 * &step;" horizontal-alignment="right">"H"<Format font-feature-settings="subs 1">"2"</Format>"SO"<Format font-feature-settings="subs 1">"4"</Format></TextSymbolizer>
<TextSymbolizer face-name="DejaVu Serif Bold" size="&size1;" dx="[dx]" dy="14 * &step;" horizontal-alignment="right">"H"<Format font-feature-settings="subs 1">"2"</Format>"SO"<Format font-feature-settings="subs 1">"4"</Format></TextSymbolizer>
<TextSymbolizer face-name="DejaVu Serif Bold Italic" size="&size1;" dx="[dx]" dy="15 * &step;" horizontal-alignment="right">"H"<Format font-feature-settings="subs 1">"2"</Format>"SO"<Format font-feature-settings="subs 1">"4"</Format></TextSymbolizer>
<TextSymbolizer face-name="DejaVu Serif Book" size="&size1;" dx="[dx]" dy="16 * &step;" horizontal-alignment="right">"H"<Format font-feature-settings="subs 1">"2"</Format>"SO"<Format font-feature-settings="subs 1">"4"</Format></TextSymbolizer>
<TextSymbolizer face-name="DejaVu Serif Condensed" size="&size1;" dx="[dx]" dy="17 * &step;" horizontal-alignment="right">"H"<Format font-feature-settings="subs 1">"2"</Format>"SO"<Format font-feature-settings="subs 1">"4"</Format></TextSymbolizer>
<TextSymbolizer face-name="DejaVu Serif Condensed Bold" size="&size1;" dx="[dx]" dy="18 * &step;" horizontal-alignment="right">"H"<Format font-feature-settings="subs 1">"2"</Format>"SO"<Format font-feature-settings="subs 1">"4"</Format></TextSymbolizer>
<TextSymbolizer face-name="DejaVu Serif Condensed Bold Italic" size="&size1;" dx="[dx]" dy="19 * &step;" horizontal-alignment="right">"H"<Format font-feature-settings="subs 1">"2"</Format>"SO"<Format font-feature-settings="subs 1">"4"</Format></TextSymbolizer>
<TextSymbolizer face-name="DejaVu Serif Condensed Italic" size="&size1;" dx="[dx]" dy="20 * &step;" horizontal-alignment="right">"H"<Format font-feature-settings="subs 1">"2"</Format>"SO"<Format font-feature-settings="subs 1">"4"</Format></TextSymbolizer>
<TextSymbolizer face-name="DejaVu Serif Italic" size="&size1;" dx="[dx]" dy="21 * &step;" horizontal-alignment="right">"H"<Format font-feature-settings="subs 1">"2"</Format>"SO"<Format font-feature-settings="subs 1">"4"</Format></TextSymbolizer>
</Rule>
</Style>
</Map>