Hello David, It has been ages since I touch text-block code :-) , so I will try to remember things well.
TextBlock internally layout and calculates the text size, and how it will fit internally. there could be some conditions that prevent it from calculating, like if it is visible or not (to save process time). Also is there text. So first question fo you see the text inside textBlock ? Also if you can share some code snippets or sample projects on get it might help. At anytime, you can check how these functions are used inside the test file `src/tests/evas/evas_test_textblock.c` *ThanksAli Alzyod* On Mon, Feb 5, 2024 at 7:23 PM David Grubb <davidanthonygr...@gmail.com> wrote: > Hi everybody, > > I'm hacking on a small project and I'm curious about some of the attributes > of the TextBlock object that I'm not understanding from the documents. Is > it possible to programmatically detect the geometry of the rendered text > within a TextBlock? > > Say, I have a non-monospaced font, I've loaded some string content and want > to know how much of the allotted TextBlock that's filled. Or, I want to > know things like whether the text has overflowed and ellipsis are now being > applied, that kind of thing. > > I thought that's what evas_object_textblock_size_formatted_get() and > evas_object_textblock_size_native_get() were about but I just get values of > zero for the Evas_Coords I pass in. > > Cheers, > Dave. > > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel