Sign in to follow this  
Followers 0
kor

jagged text .. looking to smooth

5 posts in this topic

#include <WinAPIEx.au3>
#include <APIConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>

_RemoteID()

Func _RemoteID()
    Local $hGUI = _GUI(" Remote ID", 280, 100)
$hGUIPic = GUICtrlCreatePic(@ScriptDir & "\background.jpg", 0, 0, 0, 0)


#cs
    $cRemoteID = GUICtrlCreateLabel("32.128", 0, 0, 285, 106)
GUICtrlSetBkColor($cRemoteID, $GUI_BKCOLOR_TRANSPARENT) ; set label backgroud transparent
;GUICtrlSetColor($cRemoteID, 0xB1B3B5)
;GUICtrlSetColor($cRemoteID, 0x21A3D9)
GUICtrlSetColor($cRemoteID, 0xD6D3CE)
GUICtrlSetFont($cRemoteID, 36, 600, 0, "Segoe UI")
GUICtrlSetStyle($cRemoteID, $SS_CENTER + $SS_CENTERIMAGE)
#ce

    $cRemoteID = GUICtrlCreateLabel("32.128", 0, 0, 280, 100)
GUICtrlSetBkColor($cRemoteID, $GUI_BKCOLOR_TRANSPARENT) ; set label backgroud transparent
;GUICtrlSetColor($cRemoteID, 0xB1B3B5)
;GUICtrlSetColor($cRemoteID, 0x21A3D9)
GUICtrlSetColor($cRemoteID, 0x0d2c4f)
GUICtrlSetFont($cRemoteID, 38, 600, 0, "Segoe UI", 2)
GUICtrlSetStyle($cRemoteID, $SS_CENTER + $SS_CENTERIMAGE)

GUICtrlSetState($hGUIPic, $GUI_DISABLE)
    GUISetState(@SW_SHOW, $hGUI)

    While 1
        If GUIGetMsg() = $GUI_EVENT_CLOSE Then
            ExitLoop
        EndIf
    WEnd
    GUIDelete($hGUI)
EndFunc   ;==> _RemoteID

Func _GUI($sTitle = "", $iWidth = -1, $iHeight = -1)
    Local $hGUI = GUICreate($sTitle, $iWidth, $iHeight, -1, -1, BitOR($WS_CAPTION, $WS_SYSMENU), $WS_EX_DLGMODALFRAME)
    Local $hIcon = _WinAPI_GetClassLongEx($hGUI, $GCL_HICON)
    _WinAPI_DestroyIcon($hIcon)
    _WinAPI_SetClassLongEx($hGUI, $GCL_HICON, 0)
    _WinAPI_SetClassLongEx($hGUI, $GCL_HICONSM, 0)
    Return $hGUI
EndFunc   ;==> _GUI

post-48155-0-25005100-1361470172_thumb.j

Trying to get the text to be less pixelated. Any ideas?

Running on Windows 7 if that makes any difference. I've tried different fonts, different sizes, can't seem to find the right combination that will make the text smooth.

Share this post


Link to post
Share on other sites



Might be something to do with ClearType.


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites

Might be something to do with ClearType.

I've tried to set the Quality of the font from 1 - 5 but no effect.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

"Quartz MS" doesnt look pixelated at all on my box can you just use a 'smoother' font? or is the intent trying to smooth "Segoe UI"

edit: until i blow that GUI up full screen, then i can see it slightly on the 45 degree angles

Edited by boththose

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites

"Quartz MS" doesnt look pixelated at all on my box can you just use a 'smoother' font? or is the intent trying to smooth "Segoe UI"

edit: until i blow that GUI up full screen, then i can see it slightly on the 45 degree angles

Actually I'm pretty happy with Quartz MS. I'll use that one. Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0