GMK Posted July 18, 2011 Share Posted July 18, 2011 I would like to take a text file and wrap the lines to conform to 1280px wide with an Arial Black font at 70pt size. I've looked for a way to do this with GDI+, but with no success. Does anyone have any ideas? Link to comment Share on other sites More sharing options...
sleepydvdr Posted July 18, 2011 Share Posted July 18, 2011 (edited) Something like this? #Include <EditConstants.au3> #Include <GUIConstantsEx.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 1337, 701, 193, 125) $Edit1 = GUICtrlCreateEdit("", 25, 24, 1280, 633, $ES_MULTILINE) GUICtrlSetFont(-1, 70, 400, 0, "Arial") $Button1 = GUICtrlCreateButton("Button1", 608, 664, 75, 25, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 $text = FileRead("data.txt") GUICtrlSetData($Edit1, $text) EndSwitch WEnd Edited July 18, 2011 by sleepydvdr #include <ByteMe.au3> Link to comment Share on other sites More sharing options...
GMK Posted July 18, 2011 Author Share Posted July 18, 2011 Thanks for the reply. Perhaps I need to clarify. I have a plain old text file. I want to import the text into another program that displays Arial Black 70pt at 1280x1024 resolution. I want to be able to wrap the text file before the import--so I'd be rewriting the text file with the wrapped text. Example: The following one-line text file This is a test to see if this text will wrap. would become a two-line text file: This is a test to see if this text will wrap. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now