add verticalAlign for text

Default is center. Other options are "top" and "bottom"
This commit is contained in:
Ansis Brammanis
2014-05-30 03:11:57 -04:00
parent 9057c4980d
commit 41c310c762
6 changed files with 41 additions and 13 deletions

View File

@@ -225,7 +225,9 @@ std::unique_ptr<Bucket> TileParser::createTextBucket(const VectorTileLayer& laye
const std::u32string string = ucs4conv.convert(toString(it_prop->second));
// Shape labels.
const Shaping shaped = fontStack.getShaping(string, bucket_desc.geometry.max_width, bucket_desc.geometry.line_height, bucket_desc.geometry.alignment);
const Shaping shaped = fontStack.getShaping(string, bucket_desc.geometry.max_width,
bucket_desc.geometry.line_height, bucket_desc.geometry.alignment,
bucket_desc.geometry.vertical_alignment);
shaping.emplace(toString(it_prop->second), shaped);
// Place labels.