MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / shouldUseSpriteForCodepoint

Function shouldUseSpriteForCodepoint

src/openrct2/drawing/Drawing.String.cpp:589–616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

587
588#ifndef DISABLE_TTF
589 static bool shouldUseSpriteForCodepoint(char32_t codepoint)
590 {
591 switch (codepoint)
592 {
593 case UnicodeChar::up:
594 case UnicodeChar::down:
595 case UnicodeChar::leftguillemet:
596 case UnicodeChar::tick:
597 case UnicodeChar::cross:
598 case UnicodeChar::right:
599 case UnicodeChar::rightguillemet:
600 case UnicodeChar::small_up:
601 case UnicodeChar::small_down:
602 case UnicodeChar::left:
603 case UnicodeChar::quote_open:
604 case UnicodeChar::quote_close:
605 case UnicodeChar::german_quote_open:
606 case UnicodeChar::plus:
607 case UnicodeChar::minus:
608 case UnicodeChar::variation_selector:
609 case UnicodeChar::eye:
610 case UnicodeChar::road:
611 case UnicodeChar::railway:
612 return true;
613 default:
614 return false;
615 }
616 }
617#endif // DISABLE_TTF
618
619 static void processStringLiteral(RenderTarget& rt, std::string_view text, TextDrawInfo& info)

Callers 1

processStringLiteralFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected