Friday, September 15, 2006

linux lite and fonts

Mike has talked about some of this before, but this week I went over our Linux code and tried to make it more robust in some areas. Some parts have not been touched in a while, so house cleaning is a good thing to do. Part of this for me is to test different kind of scenarios, some of them might look a little weird. Well, let me provide a screenshot and you'll see what I mean:



We are still discussing if we should actually require GTK/GDK/glib to run at all as this would allow us to do many things we can't otherwise. Some of them are more essential than others. Something non-critial and certainly optional would be the ability to access GNOME specific font settings (which are usually slightly different than the ones specified in the global and user fonts.conf file). The biggest problem with requiring GTK/GDK/glib is that right now using any sort of GTK/GDK functions within nspluginwrapper simply does not work and we haven't spent any time addressing this. That leaves konqueror pretty crippeled, even though it is not crashing anymore. Simple things like copy&paste spit out errors like this:
(process:22016): Gtk-CRITICAL **: 
gtk_clipboard_get_for_display: assertion
`GDK_IS_DISPLAY (display)' failed

Yes I know, we could add support for X11 selections, but this is besides the point. KISS (keep it simple stupid) is our coding method of choice for this release, otherwise we will never be done.

Talking about fonts: I recently took the liberty of revamping device text support in the Flash Player, the braindead font fallback system we had in the past is now the last resort, only invoked if fontconfig is not available. That means that if you are on a simplified Chinese locale you'll get the default font configured for the 'ch-Hans' locale on your system. Finally. I am still in shock we called this list of pre-baked font names in the player a solution.

6 Comments:

Blogger Darron Schall said...

Let me just say, it's so awesome to see FC64 running in Linux. I can't make out the fps rate in the screenshot - does it run pretty good? :-)

Friday, September 15, 2006 6:28:00 PM  
Anonymous Anonymous said...

I like this article, written by the guy who maintains glibc:

http://udrepper.livejournal.com/7326.html

From what I gather we are going to see a plugin that has a static copy libstdc++, dlopens gtk2, fontconfig, fails back to gtk+ or hand scanning fs/config files. Of course I'd prefer to drop to 92% compatibility instead of this 95% you hope to be obtaining. I'd say let the KDE guys sort out how they are going to work with plugins using gtk2 and print out an error message for those people who don't have fontconfig. I certainly would prefer your time spent on code quality then some odd platforms. They already have support, it's called the old version. I bet somehow freebsd will figure out how to emulate alsa, maybe by using this:

http://www.4front-tech.com/forum/viewtopic.php?p=1095&

-ken

Friday, September 15, 2006 10:37:00 PM  
Anonymous Anonymous said...

If you have a problem with nspluginviewer, have you considered talking to the developers (mailing list kfm-devel at kde.org) or maybe posting a bug at bugs.kde.org? They are usually very responsive.

Monday, September 25, 2006 4:14:00 PM  
Anonymous ismail said...

Well you know KDE has responsive developers ( me being one of them ), kfm-devel@kde.org is a good start for Konqueror spesific problems.

In the past we tried to contact Macromedia for flash plugin problems, but always ignored. I hope this can change now.

Saturday, October 07, 2006 2:00:00 PM  
Anonymous Claus Wahlers said...

"Let me just say, it's so awesome to see FC64 running in Linux. I can't make out the fps rate in the screenshot - does it run pretty good?"

As far as i can see, it shows "Infinity fps". Awesome! ;D

Tuesday, October 10, 2006 11:50:00 AM  
Anonymous <a href="http://drugscenterhere.com">ShopMan</a> said...

I like articles like this. Thanks!

Saturday, August 25, 2007 11:47:00 PM  

Post a Comment

<< Home