Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
fix text-letter-spacing render test by using float
Browse files Browse the repository at this point in the history
  • Loading branch information
ansis committed Jun 9, 2015
1 parent 0c5f8a2 commit cfee5aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mbgl/text/font_stack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const Shaping FontStack::getShaping(const std::u32string &string, const float ma
// the y offset *should* be part of the font metadata
const int32_t yOffset = -17;

int32_t x = std::round(translate.x * 24); // one em
const int32_t y = std::round(translate.y * 24) + yOffset; // one em
float x = std::round(translate.x * 24); // one em
const float y = std::round(translate.y * 24) + yOffset; // one em

// Loop through all characters of this label and shape.
for (uint32_t chr : string) {
Expand Down

0 comments on commit cfee5aa

Please sign in to comment.