Author Topic: Alignment in the cell  (Read 18169 times)

Duns

  • Newbie
  • *
  • Posts: 3
    • View Profile
Alignment in the cell
« on: March 11, 2008, 07:34:15 AM »
Are anybody now how to fix the unwanted behavior of clock in the cell? (jumping numbers)
For example - in the blue&green layout everything is fine. Font in the cell Clock is Arial. When you change it to predinstalled windows fonts, it's also ok. But when you trying to use additional fonts, the numbers is starting to jump.. I'm changing only the font and NOTHING else.. Is it posiible to beat it?

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 5381
    • View Profile
Re: Alignment in the cell
« Reply #1 on: March 11, 2008, 10:44:23 AM »
If you mean that the clock isn't updated every second (appears to skip over some seconds) then I would suggest that your PC/display hardware isn't capable of re-rendering the screen in real time with the alternate font.  Maybe try decreasing the size of the font.

Duns

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Alignment in the cell
« Reply #2 on: March 11, 2008, 11:18:21 AM »
No, it's another problem. When I use your layout, everything just fine. But when I'm changhing the font of clock cell, position of numbers is changing every second because of changing the size of numbers and centre horizontal alignment. And it happens only if you use an addittional fonts. With standard windows fonts everything is OK.

Corey Cooper

  • Administrator
  • Hero Member
  • *****
  • Posts: 5381
    • View Profile
Re: Alignment in the cell
« Reply #3 on: March 11, 2008, 11:43:19 AM »
Sounds like you're using a font with proportional number characters.  For fixed-width fonts, each character uses the same number of pixels (in width), but most fonts are proportional, and each character is only as wide as is necessary.  But many proportional fonts use fixed-width numbers.  The Arial font appears to be one of them.  Therefore, the width of the clock remains the same no matter what time is on the clock (with the exception of, for example, going from 10:00 to 9:00).

To work around this, you can set the width of the cell that holds the clock.  You'll want to set it wide enough that it doesn't cause the cells around the clock cell to resize with each clock tick.

But you'll still probably have another issue: because of the proportional numbers, the width of the clock itself will change with each tick of the clock.  Since the clock is centered, it will move to re-center itself.  You'll want to change the alignment from "center", probably to "left".

Best solution is to use a different font, but that's up to you.

Duns

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Alignment in the cell
« Reply #4 on: March 12, 2008, 04:30:55 AM »
Yes, Corey, you are rirght, the problem is exactly in using of proportional not fixed width font. The methods you proposed is helping to solve the problem, but not completely, just like you told. I found another way - using the program Font Creator. It lets to transform some properties of font just like I was needed.
Thank you!