| 90 | } |
| 91 | |
| 92 | void TextBoxCanvasComponent::set_data_from(const CanvasComponent& other) { |
| 93 | auto& otherTextBox = static_cast<const TextBoxCanvasComponent&>(other); |
| 94 | d = otherTextBox.d; |
| 95 | *cursor = *otherTextBox.cursor; |
| 96 | textBox->set_rich_text_data(otherTextBox.textBox->get_rich_text_data()); |
| 97 | } |
| 98 | |
| 99 | void TextBoxCanvasComponent::init_text_box(DrawingProgram& drawP) { |
| 100 | textBox->set_font_data(drawP.world.main.fonts); // Getting a segfault relating to the paragraph cache means that the font collection hasn't been set yet |
nothing calls this directly
no test coverage detected