Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   disable auto-kern (https://forums.graalonline.com/forums/showthread.php?t=134262695)

MrOmega 04-05-2011 04:26 AM

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.

fowlplay4 04-05-2011 05:19 AM

Can you post a picture of what's happening, and provide code to replicate the problem?

MrOmega 04-05-2011 05:29 AM

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.

WhiteDragon 04-05-2011 07:48 AM

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?

MrOmega 04-05-2011 08:06 AM

I think the couriers fixed width looks nice with it. thanks for clearing up the kerning thing.

DustyPorViva 04-05-2011 08:31 AM

Quote:

Originally Posted by MrOmega (Post 1641367)
I think the couriers fixed width looks nice with it. thanks for clearing up the kerning thing.

That's because courier is a fixed width font, so it's made to look nice like that.


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.