![]() |
disable auto-kern
I believe the term is auto-kerning, when it smushes the text together instead of each letter being seperate. Anyway to disable this for a GuiTextCtrl? Or is it font dependent?
e. 'autosizewidth=false' doesn't disable auto-kern. |
Can you post a picture of what's happening, and provide code to replicate the problem?
|
Well making a touchscreen keyboard, with custom textedit for better cursor control. Graal smushes 'eie' close together, so when I move my cursor 10 px it is now off. I just want to know how to make every letter/symbol the same width.
e. it is font dependent. I tried courier since I know it's a fixed width font and it does what I need. |
This is not kerning, it is just how all non-monospaced fonts work. Kerning is when you tuck letters (like K and e) under each other because it looks like there is space between them if you don't (even though they are right next to each other).
Most browsers haven't even supported kerning until very recently, and Graal certainly doesn't. Also, doing what you want to do (monospace a non-monospace font) will look like poo and will definitely negate any benefits you get from nicer selecting. What you really need is a way to read glyph widths from the font. Maybe GuiControlProfile.gettextwidth("some string"); will be helpful for you here? |
I think the couriers fixed width looks nice with it. thanks for clearing up the kerning thing.
|
Quote:
|
| All times are GMT +2. The time now is 07:32 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.