Entmake way. First, a classic style, second for annotative Text style.
(entmakex
'(
(0 . "STYLE")
(100 . "AcDbSymbolTableRecord")
(100 . "AcDbTextStyleTableRecord")
(2 . "My TEXT")
(70 . 0)
(40 . 0.0);<- text height not defined
(41 . 1.0)
(50 . 0.0)
(71 . 0)
(42 . 2.0)
(3 . "arial.ttf")
(4 . "")
)
)
(entmakex
'(
(0 . "STYLE")
(100 . "AcDbSymbolTableRecord")
(100 . "AcDbTextStyleTableRecord")
(2 . "My TEXT")
(70 . 0)
(40 . 2.2);;<- text height
(41 . 1.0)
(50 . 0.0)
(71 . 0)
(42 . 2.2)
(3 . "arial.ttf")
(4 . "")
(-3
("AcadAnnotative"
(1000 . "AnnotativeData")
(1002 . "{")
(1070 . 1)
(1070 . 1)
(1002 . "}")
)
)
)
)