Bugzilla – Attachment 102295 Details for
Bug 158573
<Tradition Chinese Font are different.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
Patch to add Embolden benchmark into ftbench.
ftbench-test-embolden.patch (text/plain), 1.27 KB, created by
Zhe Su
on 2006-10-23 14:42:43 UTC
(
hide
)
Description:
Patch to add Embolden benchmark into ftbench.
Filename:
MIME Type:
Creator:
Zhe Su
Created:
2006-10-23 14:42:43 UTC
Size:
1.27 KB
patch
obsolete
>--- src/ftbench.c.old 2006-10-23 22:13:36.000000000 +0800 >+++ src/ftbench.c 2006-10-23 22:21:00.000000000 +0800 >@@ -20,6 +20,7 @@ > #include FT_CACHE_CHARMAP_H > #include FT_CACHE_IMAGE_H > #include FT_CACHE_SMALL_BITMAPS_H >+#include FT_SYNTHESIS_H > > > #ifdef UNIX >@@ -79,6 +80,7 @@ > FT_BENCH_CMAP, > FT_BENCH_CMAP_ITER, > FT_BENCH_NEW_FACE, >+ FT_BENCH_EMBOLDEN, > N_FT_BENCH > }; > >@@ -90,6 +92,7 @@ > "Get glyph index", > "Iterate CMap", > "Open a new face", >+ "Embolden", > NULL > }; > >@@ -245,6 +248,30 @@ > return done; > } > >+int >+test_embolden( btimer_t* timer, >+ FT_Face face, >+ void* user_data ) >+{ >+ int i, done = 0; >+ >+ >+ FT_UNUSED( user_data ); >+ >+ for ( i = 0; i < face->num_glyphs; i++ ) >+ { >+ if ( FT_Load_Glyph( face, i, load_flags ) ) >+ continue; >+ >+ TIMER_START( timer ); >+ FT_GlyphSlot_Embolden ( face->glyph ); >+ done++; >+ TIMER_STOP( timer ); >+ } >+ >+ return done; >+} >+ > > int > test_get_glyph( btimer_t* timer, >@@ -793,6 +820,11 @@ > test.bench = test_new_face; > benchmark( face, &test, max_iter, max_time ); > break; >+ case FT_BENCH_EMBOLDEN: >+ test.title = "Embolden"; >+ test.bench = test_embolden; >+ benchmark( face, &test, max_iter, max_time ); >+ break; > } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 158573
:
73283
|
73284
|
73306
|
73444
|
73445
|
73674
|
73726
|
101395
|
101396
|
101397
|
101492
|
101493
|
101863
|
101864
|
102025
| 102295