So it turns out Nano-X and FLTK 1.3 needed some extra lovin to get themselves working together real nice on IZ2S. It took a while, but I finally got some freetype fonts loaded in the right place with the right config files. Some small patches enabled kerning and anti-aliasing in nxlib and FLTK.
I also got the X11/rgb.txt color file installed so the Xlib example programs can use colors by name. Unfortunately there's still some sort of clipping issue to work out when running nano-X -L to rotate the zipit screen to the proper orientation. Images display fine when the screen is unrotated, but not when rotated. Gotta fix that if I want to run Dillo on this thing. Anyhow this is what the mbasecalc calculator looks like, running with FLTK widgets on nxlib over nano-X.
It's got hex to decimal conversion (which I really like) and some nice shortcut keys for ease of use on the zipit. I'm still thinking about tweaking the key bindings a bit though to minimize use of the ALT key. And the calculator only uses part of the zipit screen, so it has room for more functions if I ever get really motivated.
Here's an FLTK font browser showing the list of fonts currently installed on my IZ2S setup. Unfortunately there's currently a bug somewhere in either FLTK or nxlib that prevents all but the various sizes and shapes of the "helvetica" sans font family from loading. The good news is that font family looks pretty good, and fills most of my needs.
I also fixed a few more issues with flwriter that were most likely caused by the jump to FLTK 1.3 from whatever old version it was last compiled with. It works pretty well if you stick with the one working font family. The default xhtml files load up just fine in the various browsers available on IZ2S, and the single rtf export file I created loaded up ok in word. This is what flwriter looks like on the zipit with the anti-aliased fonts.
And here's the upgraded FLTK filebrowser with the shinier gtk+ theme and antialiased freetype fonts. I'm not quite sure what to think of the microscopic text in the preview pane.
Not too shabby though...
Showing posts with label flwriter. Show all posts
Showing posts with label flwriter. Show all posts
Wednesday, October 26, 2011
Monday, October 17, 2011
Refining the Layers
Just a quick update for now. After playing with the FLTK demos for a while on the zipit I began to realize they could do with a bit of refining. For example, the keymap still wasn't quite right, and nothing was really tuned to fit on the 320x240 screen. I did a bit of tweaking in the microwin layer and got the alt key recognized as altgr so the keymap would work as loaded in all the microwin demos. But then the nxlib layer needed another similar tweak before the fltk demos would work right. I got that done, and moved onto the FLTK editor demo.
I figure the editor demo might actually be useful as a simple text editor when launched from say gmenu2x, so I decided to take a look at that one first. Most FLTK apps seem to have a few hardcoded window coordinates located in or near the main() function. This turned out to be the case with the editor demo. I adjusted the coordinates to fit nice and tight on the 320x240 screen and all seemed well and good until I hit the file save dialog. Apparently the builtin FLTK dialogs are just a wee bit chubby for the zipit screen. So I adjusted them a bit as well. Here's the tweaked FLTK file dialog.
I think it looks pretty nice on the zipit.
And since the simple editor worked out so well, I thought maybe I'd take it one step further. So I poked around the internet and found some references to an abandoned old fltk word processor program that works with xhtml files and can export to rtf. Hmm, that's almost borderline useful. Maybe with some helper utilities to convert things...
So I compiled flwriter and tweaked it a bit for the zipit screen. So far, so good, but it revealed a problem. I still need to figure out how to install the fonts for nano-X. I suppose that's next. It'd be really nice If I could work out how to share the dejavu fonts in the netsurf package.
I figure the editor demo might actually be useful as a simple text editor when launched from say gmenu2x, so I decided to take a look at that one first. Most FLTK apps seem to have a few hardcoded window coordinates located in or near the main() function. This turned out to be the case with the editor demo. I adjusted the coordinates to fit nice and tight on the 320x240 screen and all seemed well and good until I hit the file save dialog. Apparently the builtin FLTK dialogs are just a wee bit chubby for the zipit screen. So I adjusted them a bit as well. Here's the tweaked FLTK file dialog.
I think it looks pretty nice on the zipit.
And since the simple editor worked out so well, I thought maybe I'd take it one step further. So I poked around the internet and found some references to an abandoned old fltk word processor program that works with xhtml files and can export to rtf. Hmm, that's almost borderline useful. Maybe with some helper utilities to convert things...
So I compiled flwriter and tweaked it a bit for the zipit screen. So far, so good, but it revealed a problem. I still need to figure out how to install the fonts for nano-X. I suppose that's next. It'd be really nice If I could work out how to share the dejavu fonts in the netsurf package.
Subscribe to:
Posts (Atom)