mhuett Registered: 31/10/09
Posts: 5
|
|
|
Reply with quote | #1 | Still finding navigating the multiple documents/help files/web pages a bit frustrating ... but my project is coming along quite nicely so far.
One issue I'm stuck on at the moment is how to put *.4DFont files onto the uSD and then using them.
I use Graphics Composer to set up my images and then 4DGL Workshop IDE to send them to the uSD ... I can access any of those either direct via programming or via serial... no worries 
I have edited some fonts which I want to put on the uSD (read somewhere that you can!!) ...but can't work out how to do it. Putting then in as DATA in the program works but it takes up valuable space...
How do I get the font file(s) onto the uSD (preferably via my uUSB-CE5) without it overwriting my image files ... and once they are there how do I access them??
Thanks in advance
Marc
(oLED-128-G1 with 4DGL) |
| |
mhuett Registered: 31/10/09
Posts: 5
|
|
|
Reply with quote | #2 | hmmmm ... read 43 times with no responses.
So can this be done or not ... I'm sure that somewhere through the scattered manuals I read that you could put your font files/info onto the uSD.
How do you put them there and how do you select/read them ??? (or even just a "you can't" would be helpfull).
Come on 4D Support ... surely YOU GUYS would know .. 
|
| |
meldavia Moderator
Registered: 18/03/07
Posts: 268
|
|
|
Reply with quote | #3 | Which 'scattered manuals' are you referring to ? There is only one set of manuals for GFX2 (which we have deduced you are using by reading through your other posts). see http://www.4dsystems.com.au/downloads/Semiconductors/GOLDELOX-GFX2/Docs/GOLDELOX-GFX2-4DGL-Internal-Functions-rev1.pdf and http://www.4dsystems.com.au/downloads/4DGL-Docs/4DGL-Programmers-Reference-Manual-rev1.pdf
*.4DFont files were originally intended for the serial graphics platforms only, however, this feature was added late and can be used with the GFX2 platform and 4DGL language. If you are building your own host interface, and wish to be able to change fonts and images, you would simply write the font and image files via the serial interface using a custom front end written in 4DGL code. There is not yet a 'proper way' of downloading font files to the uSD card (as I mentioned, it was a late addition and is not fully documented yet) , however, it is easy to do. Open the Media Editor, set an address above your images, then just load it as you would a GCI file by navigating to the file and selecting it (instead of a *.GCI file - in fact you can load any files in this manner, text files, data files etc). The media editor will eventually be improved to make this a little more obvious.
// after initializing the card........ media_SetSector(0x0000, 0xnnnn); // media font must be somewhere within first 65535 sectors txt_Set(FONT_ID, MEDIA); // register the media address for the font
// from now until changed, print functions will use the selected font. // scaling, italics , bold , inverse etc will also work with the media fonts
__________________ Regards,
Dave |
| |
klen
Registered: 04/10/09
Posts: 4
|
|
|
Reply with quote | #4 |
it's very nice...but... i'm using uOLED-32028-P1T and uSD with FAT. my application is a 4DGL programm on device FLASH. I can place font file in FAT and load in memory buffer.....what is necessary to do the following? for this device func txt_Set() with FONT_ID & in RAM address params is not implemented yet? I correctly understand that in next PMMC for uOLED-32028-P1Tand 4DGL Workshop it will be realised
|
| |
meldavia Moderator
Registered: 18/03/07
Posts: 268
|
|
|
Reply with quote | #5 | Yes you are correct, the next Picaso release will have proportional font similar to that of Goldelox. An exact date of new Picaso release is not advised yet, we are currently working on it 24/7 and will release asap. __________________ Regards,
Dave |
| |