big fonts for CHDK - page 4 - General Discussion and Assistance - CHDK Forum

big fonts for CHDK

  • 41 Replies
  • 16218 Views
*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: big fonts for CHDK
« Reply #30 on: 09 / November / 2013, 09:53:23 »
Advertisements
I think there is a small problem with the big font patch.

Misc values & override state does not work, nothing is displayed.

msl
CHDK-DE:  CHDK-DE links

Re: big fonts for CHDK
« Reply #31 on: 09 / November / 2013, 11:30:41 »
I think there is a small problem with the big font patch.
Misc values & override state does not work, nothing is displayed.
Confirmed.  I reverted versions and it's in the menu changes rather than the big font changes.  It was also in my patches prior to philmoz working on it. 

And its really not obvious why - at least not yet.

Update :  found the problem and posted a patch.  The worst part is it was caused by something I discussed above (0=don't scale) but did not handle in the draw_osd_string() function properly.
« Last Edit: 09 / November / 2013, 11:49:22 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: big fonts for CHDK
« Reply #32 on: 09 / November / 2013, 17:18:44 »
I think there is a small problem with the big font patch.
Misc values & override state does not work, nothing is displayed.
Confirmed.  I reverted versions and it's in the menu changes rather than the big font changes.  It was also in my patches prior to philmoz working on it. 

And its really not obvious why - at least not yet.

Update :  found the problem and posted a patch.  The worst part is it was caused by something I discussed above (0=don't scale) but did not handle in the draw_osd_string() function properly.

Fixed in revision 3209 - I modified the solution slightly to still use draw_string if both scale values are 1 (slightly faster).

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 #33 on: 09 / November / 2013, 18:36:41 »
Fixed in revision 3209 - I modified the solution slightly to still use draw_string if both scale values are 1 (slightly faster).
Thanks.  I guess it doesn't matter much but I purposefully let a scale value of 1 use draw_string_scaled()  in case we ever use different fixed and scalable fonts.
Ported :   A1200    SD940   G10    Powershot N    G16


Re: big fonts for CHDK - more upgrades
« Reply #34 on: 10 / November / 2013, 13:05:20 »
Two more little upgrades :
  • patch files to allow misc values and state values to be scaled. Probably only useful for the first two sizes but who am I to judge?
  • patch file to use the zoom key to increase / decrease font sizes in the OSD editor.  Seems more natural than using the "shoot-half" key and allow you to decrease size without having to wrap all the way around.

Patch files can be applied seperately or together and in either order.

Note : You will need to reset your OSD config to use the state/misc value change - if you've used the previous version they will be locked at a fixed size in OSD__4.CFG file.
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 #35 on: 10 / November / 2013, 14:00:37 »
Good idea.

One note: a410|a430|a450|a460|a470 have no zoom lever.

msl
CHDK-DE:  CHDK-DE links

*

Offline ahull

  • *****
  • 634
Re: big fonts for CHDK
« Reply #36 on: 10 / November / 2013, 14:26:26 »
Good idea.

One note: a410|a430|a450|a460|a470 have no zoom lever.

msl

Likewise the iZoom (SD30) and i7Zoom (SD40), they use the button pad ^ and v

Re: big fonts for CHDK
« Reply #37 on: 10 / November / 2013, 15:14:49 »
One note: a410|a430|a450|a460|a470 have no zoom lever.
Likewise the iZoom (SD30) and i7Zoom (SD40), they use the button pad ^ and v
Thanks for that - I wondered about it a bit.  Can't be much fun entering large override values on those cameras without the zoom lever to change between digit.

In any case,  here's an updated patch that also allows the shutter button to increase the font size with a half-press,  wrapping back around when the largest size is reach.   So in this version you can use the zoom keys if you have them,  and the shutter button if not (or you just like pressing your shutter button a lot).
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 #38 on: 12 / November / 2013, 11:30:13 »
Thanks.

Now it should be ready for the trunk.

msl
CHDK-DE:  CHDK-DE links

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: big fonts for CHDK
« Reply #39 on: 13 / November / 2013, 02:37:08 »
One note: a410|a430|a450|a460|a470 have no zoom lever.
Likewise the iZoom (SD30) and i7Zoom (SD40), they use the button pad ^ and v
Thanks for that - I wondered about it a bit.  Can't be much fun entering large override values on those cameras without the zoom lever to change between digit.

In any case,  here's an updated patch that also allows the shutter button to increase the font size with a half-press,  wrapping back around when the largest size is reach.   So in this version you can use the zoom keys if you have them,  and the shutter button if not (or you just like pressing your shutter button a lot).

Added in revision 3220.

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)

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal