source: svn/newcon3bcm2_21bu/dst/dmw/src/grp/jungle_font/_utfBitmapSBMP.cxx

Last change on this file was 76, checked in by megakiss, 10 years ago

1W 대기전력을 만족시키기 위하여 POWEROFF시 튜너를 Standby 상태로 함

  • Property svn:executable set to *
File size: 1.5 KB
Line 
1#ifndef _INCLUDED_BITMAP_SBMP
2#define _INCLUDED_BITMAP_SBMP
3
4UT_STATIC_API UT_BOOL ut_PrepareRasterBitmapGlyphSBMP(UT_FC* fc, UT_IMAGE* image)
5{
6        UT_TRACE1("ut_PrepareRasterBitmapGlyphSBMP()");
7        UT_TRACE_TAB_INC();
8        image->type = _UT_IMAGE_TYPE_SBM;
9        if ((fc->task->glyph->count == 1) || (fc->task->glyph->cmap->glyphBBoxType == _UT_GLYPH_BBOX_FIXED))
10        {
11                UT_DATA* data = fc->task->glyph->data;
12                UT_TRACE1("if (FIXED_BBOX)");
13                image->bbox.ox = data->bbox.ox;
14                image->bbox.oy = data->bbox.oy;
15                image->bbox.sx = data->bbox.sx;
16                image->bbox.sy = data->bbox.sy;
17        }
18        else
19        {
20                UT_TRACE1("else");
21                ut_GetImageBbox(fc, image);
22        }
23        image->bSize = ut_BSIZE8(image->bbox.sx);
24        image->lSize = image->bSize * image->bbox.sy;
25        UT_TRACE2("image->bbox.ox = %d", image->bbox.ox);
26        UT_TRACE2("image->bbox.oy = %d", image->bbox.oy);
27        UT_TRACE2("image->bbox.sx = %d", image->bbox.sx);
28        UT_TRACE2("image->bbox.sy = %d", image->bbox.sy);
29        UT_TRACE2("image->bSize   = %d", image->bSize);
30        UT_TRACE2("image->lSize   = %d", image->lSize);
31        UT_TRACE_TAB_DEC();
32        return _UT_TRUE;
33}
34
35UT_STATIC_API UT_BOOL ut_MakeRasterBitmapGlyphSBMP(UT_FC* fc, UT_IMAGE* image)
36{
37        int i = fc->task->glyph->count;
38        UT_DATA* data = fc->task->glyph->data;
39        UT_TRACE1("ut_MakeRasterBitmapGlyphSBMP()");
40        UT_TRACE_TAB_INC();
41        ut_AllocScanBuffer(fc->task, image, 0);
42        UT_MEMSET(image->data, 0, image->lSize);
43        for (; i; i--,data++) ut_CopySBMP(image, data);
44        UT_TRACE_TAB_DEC();
45        return _UT_TRUE;
46}
47
48#endif /*#ifndef _INCLUDED_BITMAP_SBMP*/
Note: See TracBrowser for help on using the repository browser.