Results 1 to 20 of 20
  1. superkyol's Avatar
    Posts
    44 Posts
    Global Posts
    50 Global Posts
       #1  
    This may have already been discussed, but I've found something that may prove useful to those who are really out to trick out their device.

    There's a fork in the road ahead, but this will always be your jumping-off point:

    1: Connect your device to your computer, and establish a USB drive connection.

    Use a font you have on your computer already:
    2: Start, Run, "C:\Windows\Fonts"
    3: Copy the font file (usually a TTF) to your Pre via USB. Note that the name of the font file itself may differ from the actual font title.

    Use a font from the Interwebs:
    2: Visit dafont.com for some amazing free fonts.
    3: Download one you would like to use, copy the font file to your Pre via USB.

    4: Safely remove your device, now we have to copy the font into the folder Pre uses to find fonts it uses in WebOS.

    The best way to do this is to download the Terminal service, and then the Terminal application, which you can do right from Preware.

    5: Open Terminal (or Putty, whatever you're most comfortable with) and begin the process:

    Code:
    sudo -i
    mount -o remount,rw /
    cp /media/internal/(FONT).ttf /usr/share/fonts/(FONT).ttf
    Ta-da! Obviously, where (FONT) is, this will be the actual name of the file. Make sure you capitalize wherever necessary in the filename, just to be safe. But how do we use this? Here's an example, using systemui.css, located in /usr/lib/luna/system/luna-systemui/stylesheets/ on your device.

    Code:
    .status-bar {
    		color: #fff;
    		font-family: GeosansLight;
    		font-size: 14px;
    		line-height: 25px;
    }
    So in this example, I've changed the font in only the status bar, to GeosansLight, a font I have installed on my Pre. When you use the line font-family, you have to use the title of the font, not the filename. The Pre will find it by looking in its default font folder, so you're good to go. Remember to remount back to read-only, reboot, and zing!--a new font in your status bar!

    This effect can be applied anywhere in the device, and there is no risk of damaging the default fonts, because if it can't find the font you're looking for, it'll default to the usual Pre font.

    More tutorials coming soon, including funky text effects you can use in conjunction with this tweak.

    Enjoy!
    Last edited by superkyol; 10/05/2009 at 09:28 AM.
  2. #2  
    You should do an app for this. A person has posted a Klingon Language set fof FlashCards and even has it's own font. Even a Klingon theme. But I could see many people using this to customize their Pre and use whatever font they want. Other apps could then use it to setup font's for their app as well.
  3. superkyol's Avatar
    Posts
    44 Posts
    Global Posts
    50 Global Posts
       #3  
    Quote Originally Posted by spdsktr View Post
    You should do an app for this. A person has posted a Klingon Language set fof FlashCards and even has it's own font. Even a Klingon theme. But I could see many people using this to customize their Pre and use whatever font they want. Other apps could then use it to setup font's for their app as well.
    Good idea! I don't have a lot of spare time, so someone will more than likely beat me to the punch, but I'll see what I can do!
  4. #4  
    It would be nice if there was a tweak/app that allowed you to change the font size of email and text messages for some of us who are no longer able to see as well as in our youth without the aid of reading glasses which makes reading messages while driving (I know you should not do this, but my time is very precious) a little difficult. Just a little feature in the preferences section of those apps would be sufficient.

    I am about as able to make this happen as a monkey is able to knit a sweater so it will have to be someone who understands all of the techinical mumbo jumbo.
  5. superkyol's Avatar
    Posts
    44 Posts
    Global Posts
    50 Global Posts
       #5  
    Quote Originally Posted by Blazinfly View Post
    I would be nice if there was a tweak app that allowed you to change the font size of email and text messages...
    I'm not sure about the app part, but I can definitely write a patch to do this. I can either get a general consensus of what a good size would be (15% larger, 25% larger?), or just go ahead and make something up. Also, the fact that different fonts can be applied specifically to the Messaging and Email apps, means that bolder typefaces can be used as well.

    When I get home from work, I'll see what I can do about this, and hopefully have a patch out within a couple of days.
  6. #6  
    You should also try 1001fonts

    They have a LOT of different custom made fonts.

    Great find btw! I will be trying this soon...

    Hopefully.
  7. #7  
    Quote Originally Posted by superkyol View Post
    I'm not sure about the app part, but I can definitely write a patch to do this. I can either get a general consensus of what a good size would be (15% larger, 25% larger?), or just go ahead and make something up. Also, the fact that different fonts can be applied specifically to the Messaging and Email apps, means that bolder typefaces can be used as well.

    When I get home from work, I'll see what I can do about this, and hopefully have a patch out within a couple of days.
    That would be excellent if you could do this - I would say that 25 percent would be a great advantage for all. Most appreciative.
  8. menomonee's Avatar
    Posts
    9 Posts
    Global Posts
    14 Global Posts
    #8  
    I found a way to change the font size for sent emails. Maybe you could include this in your patch to modify Pre font sizes?

    Here are the mods I did on the emulator (I'm going to try them on my Pre next)...

    1) /usr/palm/applications/com.palm.app.email/app/models/Email.jsjsjs
    Find the line near the bottom that defines Email.kSignaturePlaceholder, and change it to this:
    Email.kSignaturePlaceholder = “<span style=’font-family:Prelude, Arial, san-serif; font-size:18px’><br><br></span><span id=’signature’></span>”

    This first change adds font-size:18px to match the default Prelude font size you get when composing email on the Pre. The original code had Verdana where I have Arial. You can change "Arial" to another font name to send the email in a different font if desired.

    2) /usr/palm/applications/com.palm.app.email/app/controllers/compose-assistant.jsjsjs
    Find the line in the send function that says...
    var theMessageBody = this.controller.get('msg_rte').innerHTML;
    and add this line after it...
    theMessageBody = theMessageBody.replace(/font-size:18px/,"font-size:15px");

    The second change does a replace on the string that gets sent as the message body, and changes the 18px size to 15px size. 15px seems to be 11.5 font size, which for me is just enough of a change to make my Pre emails look acceptable in Outlook.

    Maybe your patch could let the user pick the font type and size to send emails with, and adjust the above mods accordingly.
    Last edited by menomonee; 10/06/2009 at 12:48 AM.
  9. #9  
    I've been working on a similar goal: http://forums.precentral.net/web-os-...ome-parts.html

    I too am looking at the possibility of a program such as FontSubst for palmOS. The idea is to make it possible for users to choose global fonts and sizes to override fonts globally and to allow specifying by app or go as far as for only certain elements. As you can see in my thread I have located the segments containing code for some global and app specific fonts/sizes. Patches can be used to make the alterations however an app would be required to allow the fullest customization for a grander user base.

    What I'm thinking needs to happen is create the app to get input from the users as to what fonts and sizes they want to use and for what global and app specific elements they want to change. Then the app generates the patch to apply. Then applies the patch. Warn the user that luna needs to be restarted so they can tidy up any open apps they are working with just in case (we don't want to cause any trouble with open apps however remote the possibility). And include a button to proceed or cancel. I imagine it would apply the patches like preware does.

    The thing is there are so many different font and size specifications from global to app specific that it may be near impossible to make it possible to alter everything and is far to grand of a project for one or even a few to work on. However I would love to see a program like this for webOS. However it would be in the best interest of the community for such an app to be free and open source. I can offer my services to help with a project to make the app happen but I can't dedicate a lot of time to it.
  10. #10  
    Quote Originally Posted by menomonee View Post
    I found a way to change the font size for sent emails. Maybe you could include this in your patch to modify Pre font sizes?

    Here are the mods I did on the emulator (I'm going to try them on my Pre next)...

    1) /usr/palm/applications/com.palm.app.email/app/models/Email.jsjsjs
    Find the line near the bottom that defines Email.kSignaturePlaceholder, and change it to this:
    Email.kSignaturePlaceholder = “<span style=’font-family:Prelude, Arial, san-serif; font-size:18px’><br><br></span><span id=’signature’></span>”

    This first change adds font-size:18px to match the default Prelude font size you get when composing email on the Pre. The original code had Verdana where I have Arial. You can change "Arial" to another font name to send the email in a different font if desired.

    2) /usr/palm/applications/com.palm.app.email/app/controllers/compose-assistant.jsjsjs
    Find the line in the send function that says...
    var theMessageBody = this.controller.get('msg_rte').innerHTML;
    and add this line after it...
    theMessageBody = theMessageBody.replace(/font-size:18px/,"font-size:15px");

    The second change does a replace on the string that gets sent as the message body, and changes the 18px size to 15px size. 15px seems to be 11.5 font size, which for me is just enough of a change to make my Pre emails look acceptable in Outlook.

    Maybe your patch could let the user pick the font type and size to send emails with, and adjust the above mods accordingly.
    memomonee, thanks a ton for looking into this. I'm sure there are plenty of other Outlook users out there that cringe at the font size used in emails sent from the Pre -- very unprofessional looking.

    Here's hoping this can be made into an easy-to-apply patch.

    Thanks!
  11. #11  
    Great find!
  12. #12  
    Having trouble getting this to work. Any news on this becoming a patch?
  13. #13  
    Quote Originally Posted by beavis10 View Post
    Having trouble getting this to work. Any news on this becoming a patch?
    I couldn't get the font size tweak to work either and the default font size is very unprofessional looking. I too am anxiously awaiting a patch.
  14. #14  
    I've posted a patch that you can apply via WebOSQuickInstall here. Instructions for installing the patch are detailed in the thread.

    Hope this helps. Thanks to menomenee and brianmb99 for their proposed fixes (which I cannibalized when making the patch).
    Last edited by Jonolee; 10/20/2009 at 02:24 PM.
  15. dragbug's Avatar
    Posts
    342 Posts
    Global Posts
    347 Global Posts
    #15  
    This in an application would be perfect! I sure hope someone pics this up and runs with it. Patches are nice but an app to change fonts any time and for any place would be perfect.
  16. #16  
    Quote Originally Posted by dragbug View Post
    This in an application would be perfect! I sure hope someone pics this up and runs with it. Patches are nice but an app to change fonts any time and for any place would be perfect.
    Did you ever use a palmOS device? If so and you stil have it load up FontSubst. I've been wanting something like that for webOS. But it may be harder to do that it seems. I'm guessing that the app will have to read in the CSS etc for each thing being changed and then code a replacement file(s) to override the define font and size.
  17. #17  
    Quote Originally Posted by menomonee View Post
    I found a way to change the font size for sent emails. Maybe you could include this in your patch to modify Pre font sizes?

    Here are the mods I did on the emulator (I'm going to try them on my Pre next)...

    1) /usr/palm/applications/com.palm.app.email/app/models/Email.jsjsjs
    Find the line near the bottom that defines Email.kSignaturePlaceholder, and change it to this:
    Email.kSignaturePlaceholder = “<span style=’font-family:Prelude, Arial, san-serif; font-size:18px’><br><br></span><span id=’signature’></span>”

    This first change adds font-size:18px to match the default Prelude font size you get when composing email on the Pre. The original code had Verdana where I have Arial. You can change "Arial" to another font name to send the email in a different font if desired.

    2) /usr/palm/applications/com.palm.app.email/app/controllers/compose-assistant.jsjsjs
    Find the line in the send function that says...
    var theMessageBody = this.controller.get('msg_rte').innerHTML;
    and add this line after it...
    theMessageBody = theMessageBody.replace(/font-size:18px/,"font-size:15px");

    The second change does a replace on the string that gets sent as the message body, and changes the 18px size to 15px size. 15px seems to be 11.5 font size, which for me is just enough of a change to make my Pre emails look acceptable in Outlook.

    Maybe your patch could let the user pick the font type and size to send emails with, and adjust the above mods accordingly.
    I'm new to all this. Could you possibly write up some step-by-step instructions for those of us who have never changed code, don't know what emulator is, etc...? Many thanks.
  18. amjz's Avatar
    Posts
    451 Posts
    Global Posts
    453 Global Posts
    #18  
    where could i find and change the fonts of Memos, Messaging and Web Browser plz?

    is the solution to change fonts on palm pre with unicode fonts will let me read forgin langauges like Hebraw and Arabic?

    i have the Arial Unicode MS font, and i already upload it to my Palm Pre Fonts Folder. how can i point the Memos, Messaging and Web Browser to use that font? which .css file should i edit plz?
  19. #19  
    Quote Originally Posted by amjz View Post
    where could i find and change the fonts of Memos, Messaging and Web Browser plz?

    is the solution to change fonts on palm pre with unicode fonts will let me read forgin langauges like Hebraw and Arabic?

    i have the Arial Unicode MS font, and i already upload it to my Palm Pre Fonts Folder. how can i point the Memos, Messaging and Web Browser to use that font? which .css file should i edit plz?
    I changed the font sizes for memo and messaging. A memo is a big text entry box so changing it will change all text entry boxes of the same type. The text entry for text and IM messages is of that type. It is specified by the framework (global-textfields.css). I believe it was the textarea.text-edit { code segment. For messaging if you want to change the message bubble text that is in the apps css and I think is the .my-chat .chat-balloon-wrapper, .their-chat .chat-balloon-wrapper { code segment. I've neve looked at the web browser so someone else will have to take that one.
  20. #20  
    Quote Originally Posted by spdsktr View Post
    You should do an app for this. A person has posted a Klingon Language set fof FlashCards and even has it's own font. Even a Klingon theme. But I could see many people using this to customize their Pre and use whatever font they want. Other apps could then use it to setup font's for their app as well.
    Indeed. And as of this past Wednesday, I can now type in Klingon on my PrPrPr&#$275$;.
    problem is, the device has limits on what it's willing to accept.
    I can get the top bar to display the altered fonts, but not the app names.

Posting Permissions