TV font size problems
computer guy
Posts: 1,113
I changed the font size to 16x16 using the tv mode setting.
This made the line height 16 high however the font size remains 32 high, therefore the text gets truncated.
Is there something else I have to do to get the font smaller?
I am using tv_wtext.spin, which uses TV.spin.
Both files are attached.
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Stickers for sale
Post Edited (computer guy) : 3/14/2008 6:19:21 AM GMT
long %00010 'mode
This made the line height 16 high however the font size remains 32 high, therefore the text gets truncated.
Is there something else I have to do to get the font smaller?
I am using tv_wtext.spin, which uses TV.spin.
Both files are attached.
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Stickers for sale
Post Edited (computer guy) : 3/14/2008 6:19:21 AM GMT
Comments
I imagine you just have to change the assembly code in the driver to skip every odd line of pixels in the font table.
What changes do I need to make in order to get tv_wtext.spin to work with AI_Generic_TV.spin?
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Stickers for sale
try this:
http://forums.parallax.com/attachment.php?attachmentid=52607
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Aka: CosmicBob
I tried replacing TV.spin with AiGeneric_Driver.spin
I also changed stop to close
However this did not work.
If anyone knows could they please post.
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Stickers for sale
Post Edited (computer guy) : 3/12/2008 12:54:49 PM GMT
propeller.wikispaces.com/AiGeneric
I'd recommend using the standard version over the "cf" version for now, as I'm working out
some minor issues with Baggers in regard to Commodore font use. It should do the job
nicely.
BTW: It requires more than one spin file to operate.
OBC
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?
Getting started with the Protoboard? - Propeller Cookbook 1.4
Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
Got an SD card? - PropDOS
A Living Propeller FAQ - The Propeller Wiki
(Got the Knowledge? Got a Moment? Add something today!)
Say your DAC starts on pin 8 and you want to enable S-Video ( that 4th resistor isn't just used for audio ). so you look up the pin group, the document says that pin8 is part of the second group, so bits 6,5, & 4 of the tv_pins var would read %001_0000 (the lower 4 are for the mode). Next you'll need to determine the group mode (LSB nibble), looking at the table for group mode you see that since the DAC is on the lower nibble of the pin group 8..15 & you want s-video, you want to select baseband + chroma which coresponds to %0010 to the left of the table for baseband + chroma. put the two together (not add) and you get tv_pins = %001_0010. Don't ask me why there are only 7 bits for this variable, there just are. And the "_" character is just there so we can read it better, the compiler ignores it. Hope this sheds some light. To my understanding, this is as far as you can go with this driver unless you write your own, the hydra book has·ALOT of info on the prop, video hardware, memory organization, and ALOT more.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
E3 = Thought
http://folding.stanford.edu/·- Donating some CPU/GPU downtime just might lead to a cure for cancer! My team stats.
Post Edited (RinksCustoms) : 3/13/2008 4:39:07 AM GMT
Thank you for the information.
I already had it set for interlaced.
Is there a way to tell the tv driver to use a different font from a file. Like Font_ATARI.spin (attached)
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Stickers for sale
Post Edited (computer guy) : 3/13/2008 7:03:14 AM GMT
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Stickers for sale
The TV.spin file does no kind of "graphics engine" work per say, it just reads from a tile mapped buffer (screen, or onscreen_buffer) and generates scanlines of pixels to the tv, colored or not. It has no concept of fonts, graphical boxes, triangles, circles, or any other kind of rendering that a separate "graphics engine" running on another cog does to the pixels in an offscreen buffer. I suggest procurring a copy of the Game Programming for the prop powered HYDRA, it's ~$40 + s&h. I had many misconceptions about the video/graphics/color side of how a graphic or text goes from your prog to the screen.
To answer your question on changing the font, yes it's possible to use your own font, but the internal ROM font is still in the chip and your font will consume a certain amount of memory depending on color depth (1,2bit), and how many characters you have, generally 1 tile = 16 LONGs in memory. I really don't want to give specifics for the reason of plagerism, so procuring a copy of the Hydra book will proove to be an invaluable resource. The HYDRA book has many details and very good explanations on how the prop works, handles screen data & colors, and how memory is laid out & dealt with. The prop manual does go into explaining some of these features, but the way it's explained is a bit cryptic and not really intened for the avg amateur.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
E3 = Thought
http://folding.stanford.edu/·- Donating some CPU/GPU downtime just might lead to a cure for cancer! My team stats.
I just don't have the money for it.
I will explain my problem in more detail so that hopefully someone will be able to help.
I need to fit more characters on the screen.
So I change the TV mode to %10010 this makes no difference.
If I change TV mode to %00010 I get smaller tiles however the font gets truncated. So that I only see the top 16 pixels of the text.
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Stickers for sale
1. Use another driver like AI_Generic. (Does propDOS work with your TV)
2. Make a new 16x16 character set for the TV driver. You will fit twice as many rows but they will be a bit wide.
3. Use TV_Terminal. This uses graphics.spin so needs a lot of memory but I think that it has smaller text.
4. Write a new TV driver. Not recommended without the Hydra book.
If you want to go option 2 have a look at this site www.rayslogic.com/propeller/Programming/GraphicsDemo.htm. Its mainly about the graphics demo but the stuff about the pointers to tiles will be useful.
The only reason I have stayed away from using another driver is I need the "windowed text driver".
I will probably go with option two.
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Stickers for sale
I can't believe that pointing to a 16x32 font is this hard.
If I knew how it all worked I am sure it would be easier but nothing makes sense to me.
Thank you all for your help.
Maybe in a few years I will finally make sense of it all.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Stickers for sale