Change console text kerning in vb.net - 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.)

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

Can the Font for a UWP Drag and Drop (DragUI) caption be changed?

I am implementing drag and drop for a UWP application and all is working well, except for the Font on the DragUI caption.
I have DragUIOverride.IsCaptionVisible = True and DragUIOverride.Caption = "My Text String",
but does anyone know how to change the font? My application uses a unique font and the system font stick out like a sore thumb.
(On a similar vein, I had the same issue with ToolTips, but figured out how to set a new style for ToolTip in <Application.Resources>, but I cant seem to find anything (i.e. a TargetType) for the DragUI text.)
Any help appreciated.
Can the Font for a UWP Drag and Drop (DragUI) caption be changed?
I'm afraid, you can't change the font style for DragUIOverride.Caption, currently, there is not such api to change Caption font, it was manage by the system. And you could post your requirement with windows feed back hub.
And we have a workaround that use SetContentFromBitmapImage method insert text image to replace DragUIOverride.Caption. For more please refer XamlDragAndDrop code sample

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

Valid widths for the Settings Pane in Windows 8

I have a condition wherein the Header Text of the Settings Command in the PopUp is Larger and as per the Specification the width of 346px is a bit short for the complete text and the Width of 646px seems a bit much larger for the PopUp Header. I would like to know whether is it ok if we use custom widths for the Settings Popup which will solve my problem and if this is not an alternative i would be pleased if an alternative workaround is suggested.
Thanks for your Suggestions...
You should really stick to the recommended widths of 346px or 646px. If your header doesn't fit, why not change the font size, or add line breaks?

Is there a way to crop an swf file?

I was wondering if it is possible to crop an swf file through a program that doesn't convert the swf to anything.
I've seen a few programs like this online, but none of them actually work. Has anyone has success with this?
Thanks,
John
Do you need to alter its dimensions or its length? If it's the dimensions you want to change then it could be as easy as changing the width and height parameters of your embed code, or loading the swf into another one and displaying it behind a mask that shows only the parts you want to show. No change necessary inside the actual swf.
But maybe you meant something else? The width and height of an swf are coded inside it and could be changed with some editor, like a hex editor. But then you would have to know where the bytes are that you need to change.