Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: feature request - font change capabilities

  1. #1
    Constant Bitrate
    Join Date
    Jan 2007
    Location
    dundee, il
    Posts
    211

    feature request - font change capabilities

    i know you can change the fonts externally using variables (like in Shock V5) , but i would like to be able to have a list of all the installed fonts, their size, and the style able to be shown within the skin so that i can make a label font, and list font change skin much like the color change i now have in my skin. if there is any way to do this already, please let me know, all my attempts so far have failed miserably

    either way, thanks a lot for any help,
    david

  2. #2
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,691
    Blog Entries
    1
    Wow, that is a tall request. 90% of skins come with a predefined font, that works best with that skin. and what it was initially designed with.

    As most people know, fonts differ dramatically as far as the width and look of a font. What may look totally correct with an intended skin, may not work correctly with another font.

    Meaning, where the description of a button may say something as simple as: "Main Menu" may fit perfectly with the skins original design, does not mean that with a different font, will still fit within the confines of the font that was set.

    Here is a good example of such a situation:

    this is a test of a font size
    this is a test of a font size

    As you can see, the first line, may have been set to fit a certain space in a skin. The 2nd line will not fit in that same space.
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

  3. #3
    One Sharp Cheddar ThunderStick's Avatar
    Join Date
    Aug 2006
    Location
    West Allis, WI
    Posts
    1,660
    Currently I am experimenting with this idea. When I was creating the settings file that would control the fonts the same idea came to my mind. It wouldnt be too hard actually to make it so the fonts would change selectable from a settings menu, but there would have to be a setting for font name and size and the person changing the fonts would have to Adjust them as needed.
    It really would be a pain for the user. As John said this is why most skins do not have font changers.
    New Age Garmin - Skin for RR
    New Age Slider - RR SKin In Progress
    "It's called CODE because I don't want you to know"

  4. #4
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    The only way you'll be able to do it is to embed an app displaying the fonts and adjust your skin based on what is selected. This is way too specific to take place inside RR.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  5. #5
    Constant Bitrate
    Join Date
    Jan 2007
    Location
    dundee, il
    Posts
    211
    Quote Originally Posted by guino View Post
    The only way you'll be able to do it is to embed an app displaying the fonts and adjust your skin based on what is selected. This is way too specific to take place inside RR.
    thats what i thought, i have been trying with a dir list and setvarbycode, and a bunch of other things, and i havn't been able to get it to work.

    anyone know of a program that would select the font (the name of it, not the filename) and size, that could be used to output the info to the skin (as variables)?

    i know some fonts would look wierd, or not fit, but it would still be cool to have the functionality of it in my opinion.

    thanks for the help.
    david

  6. #6
    Mo' Programming Mo' Problems
    Auto Apps:loading...
    Sonicxtacy02's Avatar
    Join Date
    Sep 2004
    Location
    Woodbridge, VA
    Posts
    8,161
    Blog Entries
    51
    i was thinkin along the lines of an autoitscript coupled with a custom list ... autoitscript would do nothing but read all the files in the font folder to a text file, custom list displays the contents and allows you to set your $font$ variable. Only obstacle i see is not having a way of seeing what the font looks like in the custom list.
    mp3Car.com Senior Tech Blogger (Want a product reviewed? Contact me.)
    Find my plugins on the MP3Car App Store!
    Follow Me on Twitter or Facebook
    Live mp3Car Facebook Chat

  7. #7
    Constant Bitrate
    Join Date
    Jan 2007
    Location
    dundee, il
    Posts
    211
    Quote Originally Posted by Sonicxtacy02 View Post
    i was thinkin along the lines of an autoitscript coupled with a custom list ... autoitscript would do nothing but read all the files in the font folder to a text file, custom list displays the contents and allows you to set your $font$ variable. Only obstacle i see is not having a way of seeing what the font looks like in the custom list.
    that would be great, but i have no idea how to script i hadn't thought of using a custom list to do it. to view the font you could put an application area in the screen, that when a font is selected, it launches the font viewer from windows for that font.i know you've got a lot to do (new skin looks great by the way), but is there any way you could write the script to make the list? if so i would be very greatful.

    thanks
    david

  8. #8
    One Sharp Cheddar ThunderStick's Avatar
    Join Date
    Aug 2006
    Location
    West Allis, WI
    Posts
    1,660
    The way I am trying to impliment is have a few fonts that I have tried out. Create batch files that when called from RR will execute a delete and copy command which will copy over my settings.txt file. There will be a series of this txt files each of them named for the font being used. Inside the text file will be a size for the font and the font name. Which will change all the fonts to the variable specified.

    Code like below...

    Example Menu line of code for a label
    INC,settings.txt
    L,407,356,150,33,255,255,255,#FONTSIZE1#,#Font1#," DATE","LEFT"

    Example line of code in the DS-Digital.txt file
    /DEFINE FONT1 "DS-Digital"
    /Define FONTSIZE1 25

    Example Batch File name DS-Digital.bat
    DEL settings.txt
    copy DS-Digital.txt settings.txt

    Example Button Command
    "RUNQ;$SKINPATH$DS-Digital.bat||WAIT;1||RELOADSKIN||Load;menu.skin"

    I use similar coding for changing button commnands and menu displays in my current skin. It works very well, lot of files and maybe there is a more efficient way but this get the job done pretty well and it stays all behind the scenes. When you make the change the only thing you will notice is the fonts changing. It is actually pretty cool.

    In the settings.txt file there will be a pre-defined font name and size, ones of which I have tested and know work. This limits the user for on the fly font changes but will ensure everything will work correctly and fit with in the parameters needed. For custom fonts of course the user can allways manually edit the settings.txt file and enter font names and sizes their self.
    New Age Garmin - Skin for RR
    New Age Slider - RR SKin In Progress
    "It's called CODE because I don't want you to know"

  9. #9
    Wants to make it harder monkeyracer's Avatar
    Join Date
    May 2007
    Location
    Lakehood, CO
    Posts
    1,463
    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!

  10. #10
    Constant Bitrate
    Join Date
    Jan 2007
    Location
    dundee, il
    Posts
    211

    got it!

    just an update, the font change feature now works, i have it working in my skin thanks to the help of a script by el camino, and using a custom list.

    david

Page 1 of 2 12 LastLast

Similar Threads

  1. SETVOL and Bass/Treble (Bug or Feature Request ?
    By Konrad in forum RR Bug Tracker
    Replies: 2
    Last Post: 08-30-2007, 01:04 PM
  2. Replies: 2
    Last Post: 01-23-2007, 05:00 AM
  3. feature request: native gps support
    By liquid_smoke in forum Road Runner
    Replies: 43
    Last Post: 11-24-2005, 10:37 PM
  4. RR feature request (possibly?)
    By LagunaICE in forum Road Runner
    Replies: 2
    Last Post: 11-09-2005, 04:16 AM
  5. Feature Request - Different Routing Options
    By timwiththebo in forum FreeDrive
    Replies: 3
    Last Post: 07-14-2005, 05:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •