[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Devel] Re: are we ready for a new release
From: |
Chisato Yamauchi |
Subject: |
Re: [Devel] Re: are we ready for a new release |
Date: |
Tue, 13 Apr 2004 15:22:35 +0900 (JST) |
Hello,
> to use sfnt->set_sbit_strike(). Therefore, we now need only the
> support of sfnt->find_sbit_image() and sfnt->load_sbit_metrics()
> function in tt_driver_class. I propose the Patch C:
When loading a propotional font, the X server requires all glyph
metrics even if it has tens of thousands of glyphs. Therefore, we
need to program "fast path" in FreeType backend for quick metrics
calculation.
The FreeType backend of XF86-4.4.0 has "fast path" for outline
metrics calculation. But the optimization for SBit is not complete.
I show some test results using Athlon 1.4GHz PC/AT.
[ The test results of FreeType backend of XF86-4.4.0 ]
[Normal Path of Outline]
# time ./bench "-microsoft-ms pmincho-medium-r-normal--60-0-0-0-p-0-iso10646-1"
real 0m0.964s
user 0m0.010s
sys 0m0.000s
[Fast Path of Outline]
# time ./bench "-microsoft-ms pmincho-medium-r-normal--60-0-0-0-p-0-iso10646-1"
real 0m0.086s
user 0m0.000s
sys 0m0.000s
[SBit + Outline]
# time ./bench "-microsoft-ms pmincho-medium-r-normal--14-0-0-0-p-0-iso10646-1"
real 0m0.604s
user 0m0.000s
sys 0m0.000s
If there is the support of sfnt->find_sbit_image() and
sfnt->load_sbit_metrics(),
we can implement the "fast path" for SBit metrics. This is the result:
[Fast Path of SBit + Outline]
# time ./bench "-microsoft-ms pmincho-medium-r-normal--14-0-0-0-p-0-iso10646-1"
real 0m0.155s
user 0m0.010s
sys 0m0.000s
This is the code for testing:
#include <X11/Xlib.h>
int main( int argc, char *argv[] )
{
Display* dis=NULL;
dis=XOpenDisplay(NULL);
XLoadQueryFont( dis, argv[1] );
return 0;
}
and I use ms-mincho.ttc fonts for testing. This fonts is one
of standard Japanese font.
Please add find_sbit_image() and load_sbit_metrics() in
tt_driver_class...
------------------------------------------------------------
Chisato Yamauchi
http://x-tt.sourceforge.jp/
- [Devel] Re: are we ready for a new release, Chisato Yamauchi, 2004/04/10
- Re: [Devel] Re: are we ready for a new release, Chisato Yamauchi, 2004/04/12
- Re: [Devel] Re: are we ready for a new release,
Chisato Yamauchi <=
- Re: [Devel] Re: are we ready for a new release, Chisato Yamauchi, 2004/04/13
- Re: [Devel] Re: are we ready for a new release, Werner LEMBERG, 2004/04/13
- Re: [Devel] Re: are we ready for a new release, Chisato Yamauchi, 2004/04/14
- Re: [Devel] Re: are we ready for a new release, Egbert Eich, 2004/04/14
- Re: [Devel] Re: are we ready for a new release, Chisato Yamauchi, 2004/04/14
- Re: [Devel] Re: are we ready for a new release, Werner LEMBERG, 2004/04/15
- Re: [Devel] Re: are we ready for a new release, Egbert Eich, 2004/04/15
- Re: [Devel] Re: are we ready for a new release, Werner LEMBERG, 2004/04/15
- Re: [Devel] Re: are we ready for a new release, Egbert Eich, 2004/04/16