TiVo Community
TiVo Community
TiVo Community
Go Back   TiVo Community > Underground Playground > Developers Corner
TiVo Community
Reply
Forum Jump
 
Thread Tools
Old 04-30-2013, 08:15 PM   #1
davidblackledge
Registered lÜser
 
davidblackledge's Avatar
 
Join Date: Sep 2008
Location: NM
Posts: 220
"Additional fonts" available to HME on Premiere

The story begins: I was wandering around the Premiere interface trying to remember where some setting was hidden when I ended up in Closed Captioning. I noticed it had a lot of font choices available for captions including Cursive and Serif and Monospace. The first two fonts were named "default" and "system"... the same as the only two fonts built in for HME. Brainstorm! I hacked up an Application class to let me access all the ostensible system font resource IDs (10-19 since 10 is "default.ttf," 11 is "system.ttf," and 20 is a sound id).
The hope: make all those closed captioning fonts available in HME... or at least SOMETHING other than the two built-in sans-serif proportional fonts.

Launched an app to show text in each of those possible fonts and voila... 3 "additional fonts!"

It all goes downhill from here.

Oddly enough, id 12 is invalid, but 13, 14, and 15 are valid fonts (and 16-19 aren't).
"13.ttf", on close inspection, has the same "strokes" as "system.ttf", while having the same "width" as "default.ttf", with slightly taller ascenders.
That is to say, "13.ttf" has a "1" with no bottom line, a g that looks like an upside down 6 (vs. the squished 8 style), and a "J" with a longer upstroke - all the same as "system.ttf" and different from "default.ttf." However, "system.ttf" has really fat characters, while "13.ttf" and "default.ttf" are similarly thin.

In other words, no real value to it... you have to look really hard to see the difference between "default.ttf" and "13.ttf"

Then we come to 14 and 15. Of all things, they are pre-italicized and pre-bolded versions of 13.
The only useful thing you get out of that is you can still apply italic and bold styles to them, so you can effectively get two degrees of angling and two degrees of thickening vs. 13.

The final blow: they don't exist on my TiVo HD, just my Premiere.

I had so hoped this would be the answer to one of Enter Webz' prayers :/
Oh well... it was a fun little adventure.

Maybe somebody wants to search for possible new built-in sound IDs using pyHME? Too much work to hack that one in the Java SDK.
__________________
EnterWebz.tv
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
+ air qual map, minesweeper, 1p/2p card games...

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
David.Blackledge.com Solitaire/FreeCell, Calendar, Map...
hmedev.wikidot.com
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
davidblackledge is online now   Reply With Quote
Old 04-30-2013, 08:44 PM   #2
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 8,912
Interesting. But, it's also supposed to be possible to specify an arbitrary TTF font to pass to the TiVo via HME. I put the code into HME for Python (the TTF class), but I don't recall that I've ever actually tried it.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
wmcbrine is online now   Reply With Quote
Old 04-30-2013, 09:12 PM   #3
davidblackledge
Registered lÜser
 
davidblackledge's Avatar
 
Join Date: Sep 2008
Location: NM
Posts: 220
Yeah, but that's yet another data transfer ... the thing I'm trying to minimize in Enter Webz... maybe if it can be done with a URL instead of a direct transfer? I have plans to maybe make it an option for a better experience, but not upload the fonts by default... something like that.
__________________
EnterWebz.tv
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
+ air qual map, minesweeper, 1p/2p card games...

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
David.Blackledge.com Solitaire/FreeCell, Calendar, Map...
hmedev.wikidot.com
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
davidblackledge is online now   Reply With Quote
Old 04-30-2013, 09:20 PM   #4
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 8,912
Quote:
Originally Posted by davidblackledge View Post
Maybe somebody wants to search for possible new built-in sound IDs using pyHME? Too much work to hack that one in the Java SDK.
Program:

Code:
NOTICE = """Up, Reverse or Replay to go back
Pause or Left to exit
Any other button to advance and play"""

import hme

class Snd(hme.Application):
    def startup(self):
        self.snd = 20
        self.root.set_text(NOTICE)

    def next_snd(self):
        self.root.set_text(self.snd)
        self.sound(self.snd)
        self.snd += 1

    def handle_key_press(self, key, rawcode):
        if key in (hme.KEY_LEFT, hme.KEY_PAUSE):
            self.active = False
        else:
            if key in (hme.KEY_UP, hme.KEY_REVERSE, hme.KEY_REPLAY):
                self.snd -= 2
            self.next_snd()
Result:

I found one new sound, at 37. (It sounds like the next in the speedup1..3 sequence, so I'm labelling it "speedup4" for the next version of HME for Python.)
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by wmcbrine : 04-30-2013 at 09:32 PM.
wmcbrine is online now   Reply With Quote
Old 04-30-2013, 09:46 PM   #5
davidblackledge
Registered lÜser
 
davidblackledge's Avatar
 
Join Date: Sep 2008
Location: NM
Posts: 220
Quote:
Originally Posted by wmcbrine View Post
I found one new sound, at 37. (It sounds like the next in the speedup1..3 sequence, so I'm labelling it "speedup4" for the next version of HME for Python.)
Neat! did you by any chance check it on a non-premiere, too?
__________________
EnterWebz.tv
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
+ air qual map, minesweeper, 1p/2p card games...

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
David.Blackledge.com Solitaire/FreeCell, Calendar, Map...
hmedev.wikidot.com
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
davidblackledge is online now   Reply With Quote
Old 04-30-2013, 10:25 PM   #6
wmcbrine
Resistance Useless
 
wmcbrine's Avatar
 
Join Date: Aug 2003
Posts: 8,912
Quote:
Originally Posted by davidblackledge View Post
Neat! did you by any chance check it on a non-premiere, too?
Does nothing on Series 2 or 3.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
wmcbrine is online now   Reply With Quote
Reply
Forum Jump




Thread Tools


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Advertisements

TiVo Community
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
vBulletin Skins by: Relivo Media

(C) 2013 Magenium Solutions - All Rights Reserved. No information may be posted elsewhere without written permission.
TiVo® is a registered trademark of TiVo Inc. This site is not owned or operated by TiVo Inc.
All times are GMT -5. The time now is 12:56 PM.
OUR NETWORK: MyOpenRouter | TechLore | SansaCommunity | RoboCommunity | MediaSmart Home | Explore3DTV | Dijit Community | DVR Playground |