big fonts for CHDK - page 3 - General Discussion and Assistance - CHDK Forum supplierdeeply

big fonts for CHDK

  • 41 Replies
  • 16221 Views
*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: big fonts for CHDK
« Reply #20 on: 06 / November / 2013, 08:39:59 »
Advertisements
Very nice initial work!

I have found that a scaled font 16x16 (native 8x16) has a very nice look (see the screenshot from my newest script work). The ratio for x:y could be 2:1 with a single scaling factor.

msl
CHDK-DE:  CHDK-DE links

Re: big fonts for CHDK
« Reply #21 on: 06 / November / 2013, 09:12:25 »
I have found that a scaled font 16x16 (native 8x16) has a very nice look (see the screenshot from my newest script work). The ratio for x:y could be 2:1 with a single scaling factor.
Thanks - that gives me an idea.   As I said in the initial post of this thread, when scaled this way,  the fonts gets ugly as they get big.  However, building on your suggestion,  I can recode this to scale in 1/2 steps, giving more choices (  1:1,  2:1 , 2:2 , 3:2, 3:3, 4:2, 4:4 ...)

Nice looking script by the way - I get the idea from your screenshot! 

Edit : typo - I really need a better keyboard
« Last Edit: 06 / November / 2013, 09:23:20 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: big fonts for CHDK
« Reply #22 on: 06 / November / 2013, 13:17:55 »
Okay .. here's a patch file that takes the font size up in "half steps" and a screen shot of how some of the look.



I also reordered the way the OSD editor steps through the icons to group them more logically.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: big fonts for CHDK
« Reply #23 on: 06 / November / 2013, 14:55:53 »
Looks great. This could be a good improvement for CHDK 1.3.

msl
CHDK-DE:  CHDK-DE links


*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: big fonts for CHDK
« Reply #24 on: 07 / November / 2013, 16:11:31 »
Looks good.

I think it might be possible to simplify the code a bit by putting the xscale and yscale values directly into the OSD_pos structure (and modifying the load/save code accordingly).

Also using '0' as a special case for unused entries might conflict with the option to use 0 as 1/2 scale in the Lua script. Might be better to just set currently unused values to 1.

I'll take a closer look over the weekend.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: big fonts for CHDK
« Reply #25 on: 07 / November / 2013, 17:17:57 »
I think it might be possible to simplify the code a bit by putting the xscale and yscale values directly into the OSD_pos structure (and modifying the load/save code accordingly).
Yea - thought about that but decided to defer that decision so that my test versions could stay backwards compatible.

Quote
Also using '0' as a special case for unused entries might conflict with the option to use 0 as 1/2 scale in the Lua script. Might be better to just set currently unused values to 1.
I did think about smaller font scalings and once I found myself using a plural on the scaling word I realized we might be better with negative numbers rather than using zero.  (Hope that makes sense...)   The other reason I use a 0 is to prevent the editor from trying to scale icons/text that should not be scaled.  Using a 1 tells the editor that the icon is scalable and is currently 1:1.

Update : scaling the colored icons is on my "todo" list ....

« Last Edit: 07 / November / 2013, 17:19:30 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: big fonts for CHDK
« Reply #26 on: 08 / November / 2013, 05:38:56 »
Some fixes to the previous patch from waterwingz:
- moved ConfInfo ID numbers for scale values to start at 280 instead of 302. These are local to the specific conf file, so don't need to start at the next highest number across all conf files.
- removed the 1.2 mapping entries for the new scale values (they don't exist in 1.2 so no need to try and map them from an old config file)
- reset Clock default position & osd_edit width to 5 characters (minimum width rather than maximum width), otherwise you can't position the clock at the right edge of the display in 'normal' mode (without seconds).

Phil.

Edit: Updated patch to fix some issues with positioning of some OSD items if scaled, and prevent clock from being scaled in 4wins games.

This is probably ready for commit to SVN.

« Last Edit: 08 / November / 2013, 16:55:30 by philmoz »
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: big fonts for CHDK
« Reply #27 on: 08 / November / 2013, 21:12:57 »
We don't have a "Like" button on this forum,  so I'll just say "Like"
Ported :   A1200    SD940   G10    Powershot N    G16


*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: big fonts for CHDK
« Reply #28 on: 09 / November / 2013, 07:57:13 »
Personal words are always better than an anonymous button. I also say "Like".  :)

msl
CHDK-DE:  CHDK-DE links

*

Offline ahull

  • *****
  • 634
Re: big fonts for CHDK
« Reply #29 on: 09 / November / 2013, 08:16:08 »

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal