| 498 | } |
| 499 | |
| 500 | TextLine::TextLine(const String& p_text, const Ref<Font>& p_font, int p_font_size, const String& p_language, TextServer::Direction p_direction, TextServer::Orientation p_orientation) |
| 501 | { |
| 502 | rid = TS->create_shaped_text(p_direction, p_orientation); |
| 503 | if (p_font.is_valid()) |
| 504 | { |
| 505 | TS->shaped_text_add_string(rid, p_text, p_font->get_rids(), p_font_size, p_font->get_opentype_features(), p_language); |
| 506 | for (int i = 0; i < TextServer::SPACING_MAX; i++) |
| 507 | { |
| 508 | TS->shaped_text_set_spacing(rid, TextServer::SpacingType(i), p_font->get_spacing(TextServer::SpacingType(i))); |
| 509 | } |
| 510 | } |
| 511 | } |
| 512 | |
| 513 | TextLine::TextLine() |
| 514 | { |
nothing calls this directly
no test coverage detected