source: svn/newcon3bcm2_21bu/dst/dmw/src/grp/jungle_font/_utfBitmapSBM.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: 2.1 KB
Line 
1#ifndef _INCLUDED_BITMAP_SBM
2#define _INCLUDED_BITMAP_SBM
3
4UT_STATIC_API UT_BOOL ut_PrepareRasterBitmapGlyphSBM(UT_FC* fc, UT_IMAGE* image)
5{
6        UT_TRACE1("ut_PrepareRasterBitmapGlyphSBM()");
7        UT_TRACE_TAB_INC();
8        image->type = _UT_IMAGE_TYPE_SBM;
9        if (fc->task->glyph->count == 1)
10        {
11                UT_TRACE1("if (fc->task->glyph->count == 1)");
12                ut_PrepareRasterBitmapHasFixedBbox(fc, image, ut_BSIZE8(fc->task->glyph->data->bbox.sx), fc->task->glyph->data->bbox.sy);
13        }
14        else if (fc->task->glyph->cmap->glyphBBoxType == _UT_GLYPH_BBOX_FIXED)
15        {
16                UT_TRACE1("if (fc->task->glyph->cmap->glyphBBoxType == _UT_GLYPH_BBOX_FIXED)");
17                ut_PrepareRasterBitmapHasFixedBbox(fc, image, ut_BSIZE8(fc->task->glyph->data->bbox.sx), fc->task->glyph->data->bbox.sy);
18        }
19        else
20        {
21                UT_TRACE1("else");
22                ut_GetImageBbox(fc, image);
23                image->bSize = ut_BSIZE8(image->bbox.sx);
24                image->lSize = image->bSize * image->bbox.sy;
25        }
26        UT_TRACE2("image->bbox.ox = %d", image->bbox.ox);
27        UT_TRACE2("image->bbox.oy = %d", image->bbox.oy);
28        UT_TRACE2("image->bbox.sx = %d", image->bbox.sx);
29        UT_TRACE2("image->bbox.sy = %d", image->bbox.sy);
30        UT_TRACE2("image->bSize   = %d", image->bSize);
31        UT_TRACE2("image->lSize   = %d", image->lSize);
32        UT_TRACE_TAB_DEC();
33        return _UT_TRUE;
34}
35
36UT_STATIC_API UT_BOOL ut_MakeRasterBitmapGlyphSBM(UT_FC* fc, UT_IMAGE* image)
37{
38        UT_TRACE1("ut_MakeRasterBitmapGlyphSBM()");
39        UT_TRACE_TAB_INC();
40        if (fc->task->glyph->count == 1)
41        {
42                UT_TRACE1("if (fc->task->glyph->count == 1)");
43                ut_MakeRasterBitmapHasOneGlyph(fc, image);
44        }
45        else if (fc->task->glyph->cmap->glyphBBoxType == _UT_GLYPH_BBOX_FIXED)
46        {
47                UT_TRACE1("if (fc->task->glyph->cmap->glyphBBoxType == _UT_GLYPH_BBOX_FIXED)");
48                ut_MakeRasterBitmapHasFixedBbox(fc, image);
49        }
50        else
51        {
52                int i = fc->task->glyph->count;
53                UT_DATA* data = fc->task->glyph->data;
54                UT_TRACE1("else");
55                ut_AllocScanBuffer(fc->task, image, 0);
56                UT_MEMSET(image->data, 0, image->lSize);
57                for (; i; i--,data++) ut_CopySBM(image, data);
58        }
59        UT_TRACE_TAB_DEC();
60        return _UT_TRUE;
61}
62
63#endif /*#ifndef _INCLUDED_BITMAP_SBM*/
Note: See TracBrowser for help on using the repository browser.