Werner Smekal wrote: > Hi Alban, > >> "Another issue I have noticed for the Qt devices is they all seem to >> use the >> Hershey fonts. Do you have any present plans to use the powerful Qt >> font >> and text layout facilities (e.g. for Complex text layout languages >> like >> Arabic, Hebrew, Hindi, Thai, etc.) to render text?" >> No, we don't, simply because the required effort was not worth it in >> QSAS. They don't look that bad on the Qt driver as it does >> antialiasing. >> Maybe in a future development, but we have many other priorities on >> QSAS! > > This is actually quite "easy". Looking at the psttf and cairo code I > wrote some abstracted functions, since I actually use 3 different > backends for the wxWidgets driver, all with it's own font handling > code. It's more or less including one function and providing another > function which does the actual "font rendering". I can add part of > this code to the qt driver and write some comments where code is then > missing, which is then to be filled out by you. As long qt knows > unicode (100% sure) and knows how to rotate and shear fonts (quite > sure) this should be one hour of work (and a day of debugging ;). If > you don't object I'll try that.
This sounds pretty interesting. Do you think that we can achieve a level of abstraction that lets us reuse much of our TT font handling code? Many of our drivers have very similar TT font handling and it would be pretty nice if we could abstract out all that common functionality. Since, in my opinion, getting the text right is typically the hardest part of adding a new driver this could be really helpful. -Hazen ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Plplot-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plplot-devel
