C
C#17mo 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
Relevant17mo ago
What is TextChunk?
AideedSS
AideedSS17mo 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
Relevant17mo ago
Is TextChunk from some library? if I google it, I see a TextChunk in iText. Is that what you're using?
AideedSS
AideedSS17mo 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
Relevant17mo 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
Accord17mo 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
More Posts
❔ protocol for sending small amounts of data for long periods of timeWhat the title says:) I was thinking between mqtt or grpc, maybe just websockets? But the pub/sub mo❔ Efficient way to query this problemI have a logic question. Right now, I'm doing it the worst way possible... Which is s adly the only ❔ Can't build wpf project. "TestClassifier_w04izrw3_wpftmp.csproj" -- FAILED.I'm trying to build a WPF project and I keep seeing the build error: `Done building project "TestCla❔ repo doesnt connect to github on another pcmy repo (solution) is on a usb stick, i've created it on another pc and pushed it to github, now i a❔ How to get hostname string ?i need the hostname string in MappingProfile for automapper i have no access to `HttpContext.CurrenHow to get and set position of an ui element via code wpf c#Hello i want to create TextBoxes via code and set their position but i can't found how to even get tLooking for somebody who can teach me using C# language, simple things for 2D games, going to pay💰I’m looking for somebody who can teach me the C# language so I can begin creating a 2D game, I will ❔ How to handle null in InterfaceI'm trying to learn .Net Core MVC and I'm following a course where the following code gives a warninTrying to delete registry Sub key treeHey I am trying to delete this sub key tree but I keep getting errors. my code is in screen shot. a❔ snippet helpIn unity, is always s good practice to null check component. I made this ``` <CodeSnippets xmlns="h