View Single Post
Old 11-19-2007, 02:20 AM   #9
monkeyracer
Wants to make it harder
 
monkeyracer's Avatar
 
Join Date: May 2007
Location: Lakehood, CO
Posts: 1,375
as posted on davidp's thread for his skin:

Quote: Originally Posted by monkeyracer View Post
I've been looking at this a little more, and I was able to dock the Font Window of notepad into RR. But still trying to get RR to read what it says inside that window. I've found some windows classes, but some of the boxes don't have names, so I don't know how we could get the info from that box.

Here's a screenshot of what I've got going:



The red highlighted box is the item in the list in winspector spy.

Edit:
maybe someone can take the info from this thread...

http://www.dreamincode.net/forums/showtopic23512.htm

...and create a simple program that might work for what we need... (Or maybe guino can implement something in the code that allows the label command "FONTNAME" to show the Name of the font, and then some way we could get this information to write to a file in a similar way that the background chooser works.)

I'm not good with programming, otherwise I could have made some kind of code for this by now.

I understand the whole thing about each font's character spacing and everything not showing correctly on all the buttons, but maybe we skinners control that by having the font changer only change fonts in controlled areas. Or have a preview of the effect on a test button, so that if it's too big for it, it's not recommended.

One other way to do this is to have a folder with the fonts that are "approved" for use in the skin saved as a picture. Then have a picture viewer like the background chooser. When the right font is selected, a WRITETOFILE command can be used. We would just need to make sure that the filename is saved as the exact name of the font. The only problem I had when I tried this was that it was saving the filename with the extension (example: BankGothic Md BT.jpg) so if there's a way to remove the last four characters of the variable, then it would work this way...
__________________
2007 Chrysler PT Cruiser TE
Car PC Progress:
Planning.......[---------X-] 95%
Parts...........[---------X-] 90%
Fabrication...[---------X-] 90%
RR Skin........[---------X-] 95%
View my
Worklog
Road Runner Skins
Website
Favorite thread EVER!

Last edited by monkeyracer; 11-19-2007 at 03:18 AM.
monkeyracer is offline   Reply With Quote