C
C#2y ago
AideedSS

❔ Is there a way to get Textchunk Width?

something like TextChunk.GetWidth() which to get a character width..not the TextChunk.CharSpaceWidth
6 Replies
Relevant
Relevant2y ago
What is TextChunk?
AideedSS
AideedSSOP2y ago
something like
foreach (TextChunk chunk in chunks){
float width = chunk.GetWidth();
}
foreach (TextChunk chunk in chunks){
float width = chunk.GetWidth();
}
sadly, there is no .GetWidth() and .GetWidthPoint() identifier
Relevant
Relevant2y ago
Is TextChunk from some library? if I google it, I see a TextChunk in iText. Is that what you're using?
AideedSS
AideedSSOP2y ago
yup, it is I realize that it need iTextSharp 7..Right now I'm using 5.13..does the iTextSharp version 7 require a license?
Relevant
Relevant2y ago
Not familiar with that library. And I'm not able to find much in terms of documentation. Looking at the decompiled TextChunk, doesn't seem like there would be any functionality for getting the width from that class. But maybe from some sort of parent, wherever the textchunk is written to?
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server