Join Our 3 MILLION+ Members Today! Register Here | Login
Go Back   BlackBerry Forums at CrackBerry.com > BlackBerry Professionals > Theme Developers

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
    Thread Author   #1  
Old 11-15-2010, 12:22 PM
CrackBerry Master
Device(s): 9780 (Bold)
Carrier: Rogers
 
Join Date: Nov 2008
Posts: 1,454
Likes Received: 4
Thanked 143 Times in 59 Posts
Default Tutorial: Big Homescreen Clock

All right guys, after riding the wave for a while on my HTC Desire HD theme, I've decided to share the method which took me over a week to figure out. I'm gonna try to be as thorough and fool-proof as possible, follow along!

This tutorial is gonna walk you through how to do this for a touch BlackBerry. The method is more or less the same for a keyboard device, but I'll leave that up to you to figure out.

Step 1 - Obtain a font editor

"Purchase" a copy of FontCreator by High Logic
I personally have version 6.0, and is what will be used for this tutorial's examples.

Step 2 - Modify a font

For my theme, I chose to edit the Arial font. In FontCreator, go to File -> Open -> Installed Font... and open Arial (its File Name should be "arial.tff")

Once it's opened, we're gonna make an entirely new font so we don't overwrite the original font. So go to Edit -> Select All, then Edit -> Copy.

Let's make a new font now. File -> New... and name it whatever you like. I didn't touch any of the settings on this screen. Hit Ok to create the new font. Now we Edit -> Select All, then Edit -> Paste.

Now on to the fun part. Go to Tools -> Glyph Transformer.

- For your range, select All
- Under the Available Features box, click on Outlines to expand it, then click Scale. Click the right arrow to add it to the Script box.
- Change the percentage values to 250.0000
- Change the Around value to "Corner or middle of glyph" then pick the top-middle dot



Click Ok. Find the colon glyph. If you're doing exactly what I'm doing, it's the $003A glyph. Double-click on it so it opens a new window so you can edit it. There will be two rectangles, delete the bottom one. Click the top rectangle then hit the "Zoom to selected" button on the top toolbar, it's to the right of the current zoom percentage.



Now we're gonna make this rectangle super thin, we're gonna try to make it so that it looks only 1 pixel high (or close enough). Now we're gonna Edit -> Cut this rectangle, close this window, and open one of the number glpyhs. You have to try to determine which number is the widest. In this case, I'm gonna go with the number 8. So double click on the number 8 glyph to open a new window.

We're gonna Edit -> Paste the rectangle onto the 8. Now we will edit the rectangle's width to make sure it's wider than the number, with sufficient and even padding on both sides. Once you've figured that out, move the rectangle on top of the 8 so it doesn't interfere with the number.



Now simply Copy and Paste this rectangle to the rest of your number glyphs. The reason we do this is because when using custom fonts in Theme Builder, it cuts off the spacing between characters, making them look all squished together. When we make this very thin line to the point where it's invisible, we prevent that from happening. You can also paste this thin rectangle on your colon glyph if you want the space between your numbers, it's completely up to you.

Now File -> Save your font. Before you close it, make sure you Edit -> Copy that thin rectangle one more time, you will need it again in a bit.

You've just created the top half of your font. We're gonna make the bottom half now. Follow the steps above EXACTLY, except this time, when you scale your font, pick the bottom-middle dot after you select "Corner of middle of glyph" for your Around option.

After scaling, you'll want to again open up all your numbers and Edit -> Paste the SAME rectangle you used from the first font. If you're doing it right, it should paste in exactly the same spot as your first font. Remember that if you pasted that thin rectangle for your colon glyph on the first font, you'll want to do that again for your second font.

Save this font as well. Navigate to where you saved the top and bottom half and install the newly created .tff files (Right-click -> Install). If you have Theme Builder open, you'll want to restart it so it shows the newly installed fonts.

Step 3 - Set the fonts up in Theme Builder

Now let's set these fonts in Theme Builder. Set the first font (top font) as your portrait Clock font, and set the second font (bottom font) as your landscape Clock font.

Step 4 - Obtain the code, steal the code, use the code

You need to be familiar with getting into the exported SVG code. If you aren't familiar with this, please read up on it here as I will not go into how to do this:

http://forums.crackberry.com/f115/ha...3/#post4933863

Anyways, export the theme, paying CLOSE ATTENTION to what you put in the Theme Name. Go to your Temp folder where the theme is exported, and note your two custom fonts with a "cbtf" file extention. Open up homescreen.svg and look for your clock codes. You'll want to find

<image
id="BannerTime-home"


and also

<image
id="BannerTime-homescreen__Landscape"


Now notice how their font-family attributes are set up in these image tags. Look familiar? This is why I said to pay close attention to what you name it. I'm also going to advise you that there's an 18 character limit for naming your theme and how it shows up for the font-family attribute. Here's what I mean:

If I exported my theme with the name "Big_Clock", it will show up as

font-family=theme_Big_Clock-0

and

font-family=theme_Big_Clock-1

respectively. However, if I name it something beyond 18 characters, such as "HTC_Desire_HD_Metal" then it will use the first 18 characters:

font-family=theme_HTC_Desire_HD_Meta-0

and

font-family=theme_HTC_Desire_HD_Meta-1

I hope you understand what I mean by that! Now you'll want to take those image tags of BannerTme-home and BannerTime-homescreen__Landscape and paste them into your own custom SVG. You'll want to play around with the co-ordinates to get the top and bottom halves to line up properly. You should also hide the original Clocks with this code:

<set xlink:href="#bannerTime-Home" attributeName="display" to="none" begin="0"/>

<set xlink:href="#bannerTime-homescreen__Landscape" attributeName="display" to="none" begin="0"/>


Concluding Statements

And that's pretty much how you do it. One thing to keep in mind is you always have to make sure your font-family attributes in your SVG match what you're gonna name the exported theme, otherwise the clocks won't show up at all.

I look forward to seeing what you guys come up with!

Cheers,

Vince (the Prince)
Reply With Quote Tip this Post
Liked by tranpqvu likes this.
Thanked by 9 BBThemes (11-16-2010), daniel200 (08-23-2011), ehadinata (05-12-2011), jmerhi (11-24-2010), JTekt (11-19-2010), lllabao (11-19-2010), mrtolles (11-17-2010), sperm307 (02-12-2012), tranpqvu (12-09-2011)
  #2  
Old 11-15-2010, 01:49 PM
CrackBerry Abuser
Device(s): Blackberry Curve 8530
Carrier: Sprint
Pin: 315D3B3C
 
Location: Oklahoma
Join Date: Oct 2010
Posts: 229
Likes Received: 0
Thanked 11 Times in 6 Posts
Default

Do you HAVE to buy a font editor or can you get one free?

Posted from my CrackBerry at wapforums.crackberry.com
Reply With Quote Tip this Post
    Thread Author   #3  
Old 11-15-2010, 08:06 PM
CrackBerry Master
Device(s): 9780 (Bold)
Carrier: Rogers
 
Join Date: Nov 2008
Posts: 1,454
Likes Received: 4
Thanked 143 Times in 59 Posts
Default

I will not openly condone piracy but... I guess there are ways around paying for it lol.
Reply With Quote Tip this Post
  #4  
Old 11-19-2010, 02:30 AM
CrackBerry User
Device(s): 8900 (Curve)
 
Join Date: Oct 2009
Posts: 12
Likes Received: 0
Thanked 0 Times in 0 Posts
Default

Thank you so much for the tutorial, I have a question: there's a displacement when I change the 12-hour to Military time?? Can you help?
Reply With Quote Tip this Post
  #5  
Old 11-21-2010, 12:41 PM
CrackBerry Abuser
Device(s): 9800 (Torch)
Carrier: AT&T/Cingular
 
Join Date: Aug 2008
Posts: 121
Likes Received: 0
Thanked 6 Times in 1 Post
Default

I can't seem to get this to work and I believe I have followed all of your steps to the "t". Should I be able to see these results when I run the simulator, or will I only be able to see them by exporting the theme and installing it on my phone.
Reply With Quote Tip this Post
  #6  
Old 11-21-2010, 08:35 PM
CrackBerry Master
Device(s): 9650and Iphone
Carrier: Verizon
 
Join Date: Dec 2008
Posts: 1,405
Likes Received: 13
Thanked 33 Times in 23 Posts
Default

Thank you vince havent tryed this but this means alot to us themers!
Reply With Quote Tip this Post
  #7  
Old 11-22-2010, 10:49 AM
CrackBerry Master
Device(s): 8900 (Curve)
Carrier: T-Mobile
 
Join Date: Apr 2009
Posts: 1,187
Likes Received: 1
Thanked 2 Times in 2 Posts
Default

Great tutorial! Thanks VTP!
Reply With Quote Tip this Post
  #8  
Old 11-23-2010, 06:43 PM
CrackBerry Abuser
Device(s): 9800 (Torch)
Carrier: AT&T/Cingular
 
Join Date: Aug 2008
Posts: 121
Likes Received: 0
Thanked 6 Times in 1 Post
Default

Quote:
Originally Posted by JTekt View Post
Should I be able to see these results when I run the simulator, or will I only be able to see them by exporting the theme and installing it on my phone.
so yea, uh, to answer my own question...yes. You will only be able to view this change by actually exporting the theme to your phone. Simulator is of no help as your custom fonts won't appear.
Reply With Quote Tip this Post
    Thread Author   #9  
Old 11-23-2010, 06:47 PM
CrackBerry Master
Device(s): 9780 (Bold)
Carrier: Rogers
 
Join Date: Nov 2008
Posts: 1,454
Likes Received: 4
Thanked 143 Times in 59 Posts
Default

Quote:
Originally Posted by JTekt View Post
so yea, uh, to answer my own question...yes. You will only be able to view this change by actually exporting the theme to your phone. Simulator is of no help as your custom fonts won't appear.
Wrong.

10 chars
Reply With Quote Tip this Post
  #10  
Old 11-24-2010, 12:00 PM
CrackBerry Abuser
Device(s): 9800 (Torch)
Carrier: AT&T/Cingular
 
Join Date: Aug 2008
Posts: 121
Likes Received: 0
Thanked 6 Times in 1 Post
Default

Quote:
Originally Posted by VinceThePrince View Post
Wrong.

10 chars
I dunno. My theme name is only 5 characters long. When I use the simulator to see if my large clock works, i get nothing but two small clocks in the default, alternate font. However, I then exported the theme by installing it directly to my torch (using the exact same svg with no changes) and that's when I got things to work.
Reply With Quote Tip this Post
  #11  
Old 11-26-2010, 08:13 AM
CrackBerry Newbie
 
Join Date: Jun 2010
Posts: 1
Likes Received: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by JTekt View Post
so yea, uh, to answer my own question...yes. You will only be able to view this change by actually exporting the theme to your phone. Simulator is of no help as your custom fonts won't appear.
same thing here, can't seem to get the simulator to show the custom font (probably because when we do a preview on the sim, they named the theme to some random name, but when we export to our phone it uses the theme name and able to load the font).
Any way to make the sim preview exporting using the theme name? I'm using TB 5.0.0.34 and a storm2 sim running OS 5.0.0.713

Thanks

---------------
EDIT:
finally figured out how to get it on the simulator, here's what you need to do , DON'T simulate straight away, you need to export it OTA and place it on a folder that you'll simulate into an SD Card, then on the simulator, click on the Simulate tab and you select the "Change SD Card..." , then you need to select you previous exported OTA theme folder. From there you'll just need to explore the "sd card" and install the theme and see the results.

Last edited by dani_dee; 11-26-2010 at 03:48 PM. Reason: got it
Reply With Quote Tip this Post
    Thread Author   #12  
Old 11-30-2010, 11:34 AM
CrackBerry Master
Device(s): 9780 (Bold)
Carrier: Rogers
 
Join Date: Nov 2008
Posts: 1,454
Likes Received: 4
Thanked 143 Times in 59 Posts
Default

Quote:
Originally Posted by dani_dee View Post
same thing here, can't seem to get the simulator to show the custom font (probably because when we do a preview on the sim, they named the theme to some random name, but when we export to our phone it uses the theme name and able to load the font).
Any way to make the sim preview exporting using the theme name? I'm using TB 5.0.0.34 and a storm2 sim running OS 5.0.0.713

Thanks

---------------
EDIT:
finally figured out how to get it on the simulator, here's what you need to do , DON'T simulate straight away, you need to export it OTA and place it on a folder that you'll simulate into an SD Card, then on the simulator, click on the Simulate tab and you select the "Change SD Card..." , then you need to select you previous exported OTA theme folder. From there you'll just need to explore the "sd card" and install the theme and see the results.
Yeah sorry forgot to mention this, don't export to simulator from the Theme Builder. Although your method probably works, I'll share how I personally do it. You have to export the theme as a Desktop Manager install, not an OTA. Then within the simulator, go to File -> Open and find the .cod file. Something like that anyways, can't remember the exact File -> Open technicalities.
Reply With Quote Tip this Post
  #13  
Old 02-22-2011, 08:45 AM
CrackBerry Addict
Device(s): 9800 (Torch)
Carrier: AT&T/Cingular
 
Join Date: Mar 2009
Posts: 835
Likes Received: 12
Thanked 159 Times in 63 Posts
Default

Quote:
Originally Posted by stuckinamerica93 View Post
Do you HAVE to buy a font editor or can you get one free?

Posted from my CrackBerry at wapforums.crackberry.com
Quote:
Originally Posted by TheThemeBox View Post
I will not openly condone piracy but... I guess there are ways around paying for it lol.
I too am interested in any free font editors which may exist. I currently make all my themes for free, so $80 for a font editor is a bit steep for something I like to tinker with.

I'm not looking for pirated programs, but truly free programs.
__________________
#eric_on_twit
Reply With Quote Tip this Post
  #14  
Old 02-24-2011, 10:04 PM
CrackBerry User
Device(s): 9800 and 9780 now
Carrier: AT&T/Cingular
 
Join Date: Nov 2010
Posts: 27
Likes Received: 0
Thanked 0 Times in 0 Posts
Default

Hi Thethemebox, thank you for your awesome tutorial of Big clock.
but i have a question,

do you know the id name of time for non touch devices (9700,8500 ...) ??

i have tested to hide the time/clock using your svg code, but they are not working for 9700. i got invalid id name of " bannerTime-Home" when i load them in simulator.

but when i tested on 9500, it works. the time is hidden with your svg code. i think that below codes are working for 9500 only.

<set xlink:href="#bannerTime-Home" attributeName="display" to="none" begin="0"/>

<set xlink:href="#bannerTime-homescreen__Landscape" attributeName="display" to="none" begin="0"/>



i know i can hide the time using Theme Builder, just uncheck the visibility and then adding this code in svg to create it again

x-object:/CurrentDateTime?clocktype=time


but this is not what i meant, because if we know the id name of somes objects, they can let us easily modify it, just like the Today with id name hs#

Last edited by hertz_huang; 02-24-2011 at 10:44 PM.
Reply With Quote Tip this Post
    Thread Author   #15  
Old 02-25-2011, 12:15 AM
CrackBerry Master
Device(s): 9780 (Bold)
Carrier: Rogers
 
Join Date: Nov 2008
Posts: 1,454
Likes Received: 4
Thanked 143 Times in 59 Posts
Default

Quote:
Originally Posted by hertz_huang View Post
Hi Thethemebox, thank you for your awesome tutorial of Big clock.
but i have a question,

do you know the id name of time for non touch devices (9700,8500 ...) ??

i have tested to hide the time/clock using your svg code, but they are not working for 9700. i got invalid id name of " bannerTime-Home" when i load them in simulator.

but when i tested on 9500, it works. the time is hidden with your svg code. i think that below codes are working for 9500 only.

<set xlink:href="#bannerTime-Home" attributeName="display" to="none" begin="0"/>

<set xlink:href="#bannerTime-homescreen__Landscape" attributeName="display" to="none" begin="0"/>



i know i can hide the time using Theme Builder, just uncheck the visibility and then adding this code in svg to create it again

x-object:/CurrentDateTime?clocktype=time


but this is not what i meant, because if we know the id name of somes objects, they can let us easily modify it, just like the Today with id name hs#
This is when you get creative
Reply With Quote Tip this Post
Reply
BlackBerry Forums at CrackBerry.com > > BlackBerry Professionals > Theme Developers   Tutorial: Big Homescreen Clock

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes