Using pdfminer - Is there a way to detect underlines? - pdfminer

I get the font and size of the letters from LTChar.
I didn't find how to know if a char/word is underlined.
Is it possible?

Related

iText 7 Get font line height

I am trying to get the total line height (ascent + descent) of a font in iText 7 with page and font size given. I found methods like PdfFont.getAscent(String, float) but this one seems to return the ascent for that particular given string. I want to get the general ("maximum") size properties for a given font and font size, as is for example possible in Java AWT (FontMetrics.getHeight()). Is there a way to do this? Or is there some specific reason why there is no way, that I should know about?
Thanks in advance!
The answer to this problem is solved here - https://stackoverflow.com/a/71289581/17931838
In a simple way, you need to extract the text from the pdf, and use itext tools to find the font height

How to change the font size of line numbers in IntelliJ IDEA?

I want to increase the font size of the line numbers in IntelliJ IDEA Ultimate(2019.3.1) independently from changing the font of the code itself but I can't find the way of doing so.
I shook the whole Internet and didn't find anything up to date either. Actions search didn't help as well.
How do I do that?
The font size of line numbers automatically changes along with the font size of code in the editor. It uses the same font setting(font, font size, etc).
You can try to adjust font.
https://www.jetbrains.com/help/idea/settings-editor-font.html
And as Improbable mentioned, there is a feature request for it: https://youtrack.jetbrains.com/issue/IDEA-92443

Increase font for pdf using Inkscape

I use to produce pdf graphs with R then I like to modify them using inkscape.
Yet when I increase font, letter size increase but letter spacing don't as you can see in example.
I have the same problem when I do the same with pdf from latex.
Thank for your help
Perhaps you have broken the text into individual letters, and are applying the new font size to those, rather than to the entire word? You may need to recreate the Xlabel text/group the letters back together.
Although there is an answer for exactly the same question here, I will duplicate it:
You should select the text you want to resize and then remove manual kerning either before or after the resizing. This can be done by clicking Text -> Remove Manual Kerns.

vb.net find and replace inside wmf files

I am struggling to open wmf files and run a simple ascii find and replace to look for certain characters in the metadata and replace with different values. any idea can this be done? I have a wmf editor that shows me the text inside the image is a proper windows font and not combination of lines and arcs. any ideas are welcome!

Change console text kerning in vb.net

I'm trying to make each letter a "square" essentially, so each letter is no more tall than it is wide, in vb.net. Is this possible? If so, how? I can't seem to find anything, and I've been searching hard.
Thanks for the help!
Why dont you just use a fixed size font ? Or create your own font ?
The Windows API has a function called SetCurrentConsoleFontEx which you could pinvoke. It accepts a width and height, font etc. Depending on how it handles these you may also need to make and add a 'square font' to the registry list of allowed fonts (example of adding a new font to the console here.)