diff options
author | Chia-I Wu <[email protected]> | 2010-11-24 01:24:38 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-12-01 11:23:52 +0800 |
commit | 5d64a06a6322b6e6f88233e79c6431e96eda7de6 (patch) | |
tree | ada420dd47351d758bc61643aae984648f46f920 /src/gallium/state_trackers/vega/api_params.c | |
parent | 34f466d4e6a720138c0846ab6233c32dc039fe58 (diff) |
st/vega: Add primitive text support.
Optional features such as auth-hinting are not implemented. There is no
anti-aliasing, and no effort is done to keep the glyph origin integral.
So the text quality is poor.
Diffstat (limited to 'src/gallium/state_trackers/vega/api_params.c')
-rw-r--r-- | src/gallium/state_trackers/vega/api_params.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/vega/api_params.c b/src/gallium/state_trackers/vega/api_params.c index a10b009e631..c94fd2e537e 100644 --- a/src/gallium/state_trackers/vega/api_params.c +++ b/src/gallium/state_trackers/vega/api_params.c @@ -30,6 +30,7 @@ #include "paint.h" #include "path.h" #include "image.h" +#include "text.h" #include "matrix.h" #include "api_consts.h" #include "api.h" @@ -1500,7 +1501,8 @@ VGint vegaGetParameteri(VGHandle object, #ifdef OPENVG_VERSION_1_1 case VG_FONT_NUM_GLYPHS: { - return 1; + struct vg_font *font = (struct vg_font*)object; + return font_num_glyphs(font); } break; #endif |