WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Pixel Perfect 1px font outline (https://www.wowinterface.com/forums/showthread.php?t=55966)

gempir 01-10-18 05:20 PM

Pixel Perfect 1px font outline
 
So I'm wondering how I could achieve a pixel perfect outline on font strings.

An exmaple are these unitframes:



On the left side i'm using a shadow with 1, -1 offset. On the right side (target) I'm just using "THINOUTLINE" sadly THINOUTLINE looks really mushy and not as crisp as I want it to be. Without the outline it looks clean so I don't think font scaling is an issue. How can I achieve a clean 1 px black outline on my font?

The shadow is nice but its after all still a shadow and not an outline, which means only one side is covered here.

p3lim 01-10-18 08:52 PM

Try disabling all font shadows (:SetShadowOffset(0,0)) and use the 'MONOCHROMEOUTLINE' font flag.

gempir 01-11-18 03:35 AM

Thanks that's what i was looking for

Looks pretty bad sadly. Guess the Font I'm using is not optimized for it.


Aftermathhqt 01-11-18 05:58 AM

Quote:

Originally Posted by gempir (Post 326439)
Thanks that's what i was looking for

Looks pretty bad sadly. Guess the Font I'm using is not optimized for it.


Looks like your font size is too big :)

gempir 01-11-18 07:09 AM

Maybe yeah but smaller doesn't really look better and bigger wouldn't fit.


p3lim 01-11-18 09:38 AM

Keep in mind, the MONOCHROME flag only works well with actual pixel fonts.

gempir 01-11-18 11:08 AM

uhh okay? Could you give me some examples? What are ACTUAL pixel fonts?
This is the one I'm using https://www.dafont.com/squarefont.font

it's a really nice font and works almost everywhere but the outline looks shitty as you can see.

Ammako 01-11-18 11:26 AM

That's not a pixel font. If you want examples just look at the font on many older 8-bit or 16-bit games.


Seerah 01-11-18 01:09 PM

Look for something in this "Pixel/Bitmap" category on dafont
https://www.dafont.com/bitmap.php

JDoubleU00 01-11-18 01:44 PM

Quote:

Originally Posted by Ammako (Post 326448)
That's not a pixel font. If you want examples just look at the font on many older 8-bit or 16-bit games.


Don't forget this classic:

http://us.blizzard.com/en-us/games/a...archive-2.html

I can't figure out how to post screenshots.


All times are GMT -6. The time now is 03:14 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI