Skip to content

Commit

Permalink
Fix the issue of incorrect emoji detection in webTypeface (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hparty authored Nov 6, 2024
1 parent af2e3ff commit 829c215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/vectors/web/WebTypeface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ WebTypeface::WebTypeface(std::string name, std::string style)
if (!this->style.empty()) {
webFontFamily += " " + this->style;
}
auto emojiName = name;
auto emojiName = this->name;
std::transform(emojiName.begin(), emojiName.end(), emojiName.begin(), ::tolower);
_hasColor = emojiName.find("emoji") != std::string::npos;
}
Expand Down

0 comments on commit 829c215

Please sign in to comment.