| 157 | } |
| 158 | |
| 159 | bool TextLine::add_string(const String& p_text, const Ref<Font>& p_font, int p_font_size, const String& p_language, const Variant& p_meta) |
| 160 | { |
| 161 | ERR_FAIL_COND_V(p_font.is_null(), false); |
| 162 | bool res = TS->shaped_text_add_string(rid, p_text, p_font->get_rids(), p_font_size, p_font->get_opentype_features(), p_language, p_meta); |
| 163 | for (int i = 0; i < TextServer::SPACING_MAX; i++) |
| 164 | { |
| 165 | TS->shaped_text_set_spacing(rid, TextServer::SpacingType(i), p_font->get_spacing(TextServer::SpacingType(i))); |
| 166 | } |
| 167 | dirty = true; |
| 168 | return res; |
| 169 | } |
| 170 | |
| 171 | bool TextLine::add_object(Variant p_key, const Size2& p_size, InlineAlignment p_inline_align, int p_length, float p_baseline) |
| 172 | { |
no test coverage detected