Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • M mapnik3
  • Project information
    • Project information
    • Activity
    • Members
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
Collapse sidebar
  • 周峰
  • mapnik3
  • Wiki
  • FontSet

FontSet · Changes

Page history
clone mapnik wiki from github. authored May 14, 2021 by 周峰's avatar 周峰
Hide whitespace changes
Inline Side-by-side
FontSet.md 0 → 100644
View page @ 8516de00
<!-- Name: FontSet -->
<!-- Version: 1 -->
<!-- Last-Modified: 2009/01/28 20:44:31 -->
<!-- Author: Beau Gunderson -->
The FontSet element defines a group of fonts to be used in cases where it is desirable to support more characters than exist in a single font (also referred to as "fallback fonts" support).
For example, on a layer with both English and Chinese names, one could specify fonts with a high level of legibility for English letters as well as a fallback font for Chinese characters that don't exist in the English font.
Here's a small example:
```xml
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map>
<Map srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<FontSet name="my-fonts">
<Font face-name="DejaVu Sans Book" />
<Font face-name="TSC FMing S TT Regular" />
</FontSet>
<Style name="font-test">
<Rule>
<TextSymbolizer name="NAME" fontset-name="my-fonts" size="15" fill="black" />
</Rule>
</Style>
<Layer name="font-test" status="on" srs="+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs">
<StyleName>font-test</StyleName>
<Datasource>
<Parameter name="type">shape</Parameter>
<Parameter name="file">Font_Test</Parameter>
</Datasource>
</Layer>
</Map>
```
\ No newline at end of file
Clone repository
  • A perfect testcase
  • API changes between v2.0 and v2.1
  • API changes between v3.0 and v3.1
  • AWS Lambda
  • About Mapnik
  • AlsoFilter
  • Api changes between v2.1 and v2.2
  • Api changes between v2.2 and v2.3
  • Api changes between v2.3 and v3.0
  • ArchInstallation
  • Aspect Fix Mode
  • Benchmark Notes
  • BoundsClipping
  • BrokenExceptions
  • BuildingSymbolizer
View All Pages