Posts: 40,483
Threads: 491
Joined: Aug 2002
SamVimes2 Wrote:Something that would be nice for the iPhone at least, on which the user can't add any new fonts, would be a way for the client to request font data though the existing image cache, or even a new 'font cache'...
How would you actually make use of them though? You are going to get a raw TT type font file. Unless you have some way of installing them from within the RIVA client program, it wouldn't really help.
Dean Roddey
Explorans limites defectum
Posts: 40,483
Threads: 491
Joined: Aug 2002
brianmount Wrote:Is there in fact a way to detect, either officially or via heuristic examination of the RIVA command flow, that the template size has changed? If not, do you have any suggestions on how I should attack this problem?
We can always add a new message in the next version of the protocol that will send you the name of a newly loaded base template and the size of it, and maybe some other info if that's useful.
Dean Roddey
Explorans limites defectum
Posts: 1,277
Threads: 142
Joined: Oct 2005
Dean Roddey Wrote:How would you actually make use of them though? You are going to get a raw TT type font file. Unless you have some way of installing them from within the RIVA client program, it wouldn't really help.
the iPhone SDK has methods that can load and render a truetype font in an app:
http://www.waterworld.com.hk/en/node/157
i'd be pretty surprised if the .net cf and android platforms didn't have similar methods, but you should let an expert weigh in.
Posts: 40,483
Threads: 491
Joined: Aug 2002
But if it couldn't actually install them, then it would have to download that information every time it ran. TTF fonts are usually from 100K up to 1MB or so. That probably wouldn't be very practical, would it? That would be way larger than the template data itself, up to ten times larger.
Dean Roddey
Explorans limites defectum
Posts: 1,277
Threads: 142
Joined: Oct 2005
Dean Roddey Wrote:But if it couldn't actually install them, then it would have to download that information every time it ran. TTF fonts are usually from 100K up to 1MB or so. That probably wouldn't be very practical, would it? That would be way larger than the template data itself, up to ten times larger.
I just meant that users can't install fonts in the same way they (sometimes) can on a windows CE device - the joy of an apple product! Apps are free to store and consume whatever resources they want (within some other appl-y limits obviously).
The transport font that a lot of us use is only 17k, and would save much more than that in image downloading. in addition, hopefully the same cross-session image-caching stuff you'll hopefully think about for 3.2 would extend to fonts, and even a larger one could be downloaded just once.
now, looking more closely at the license of this particular font, it seems possible they would give us permission to use the font as a resource in the app. but IVB asked the same question about a totally different platform; seems like this will come up enough to warrant some though about a more general solution
Posts: 1,061
Threads: 9
Joined: Sep 2008
I've been distracted by other projects, so things are going slower than expected... When I tried to port the MessagePacket.cs from the .NET RIVA client, I realized that the Android platform doesn't have any unsigned integer/byte, as it is java based... So the question is, do I have to waste memory going uint16 --> int32, or would the values actually fit in uint16 --> int16? I know that for the byte I don't have a choice, with values like 0xF1...
Posts: 2,407
Threads: 244
Joined: Oct 2007
Did the web image widget ever get integrated into the RIVA protocol? I'm working templates for the iPad and they are needed for the squeeze center driver.
Posts: 40,483
Threads: 491
Joined: Aug 2002
potts.mike Wrote:Did the web image widget ever get integrated into the RIVA protocol? I'm working templates for the iPad and they are needed for the squeeze center driver.
No, that would require huge changes because it's really just completely out of sync with the way that RIVA works, and would require substantial changes in the clients as well to support it.
Dean Roddey
Explorans limites defectum
Posts: 1,277
Threads: 142
Joined: Oct 2005
It hasn't yet. Dean has indicated the 3.3 timeframe. JKish has also suggested he's working on some updates to his templates so between these two items I've been holding off on serious SC iPad template work.
Posts: 1,277
Threads: 142
Joined: Oct 2005
Dean, do you mean web widgets or web image widgets? Based on this
post and some other discussions I'd been looking forward to web image widgets in the advanced RIVA protocol.