MCPcopy Create free account
hub / github.com/creatale/node-dv / TextAttributes

Method TextAttributes

deps/tesseract/viewer/scrollview.cpp:641–655  ·  view source on GitHub ↗

Set the attributes for future Text(..) calls.

Source from the content-addressed store, hash-verified

639
640// Set the attributes for future Text(..) calls.
641void ScrollView::TextAttributes(const char* font, int pixel_size,
642 bool bold, bool italic, bool underlined) {
643 const char* b;
644 const char* i;
645 const char* u;
646
647 if (bold) { b = "true";
648 } else { b = "false"; }
649 if (italic) { i = "true";
650 } else { i = "false"; }
651 if (underlined) { u = "true";
652 } else { u = "false"; }
653 SendMsg("textAttributes('%s',%u,%s,%s,%s)", font, pixel_size,
654 b, i, u);
655}
656
657// Draw text at the given coordinates.
658void ScrollView::Text(int x, int y, const char* mystring) {

Callers 5

word_displayMethod · 0.80
DisplayMethod · 0.80
plotMethod · 0.80
plotMethod · 0.80
DisplayMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected