Home
last modified time | relevance | path

Searched refs:font (Results 1 – 25 of 101) sorted by relevance

12345

/AliOS-Things-master/components/py_engine/framework/
A Dst7789py.py549 if (font.FIRST <= ch < font.LAST
553 if font.HEIGHT == 8:
650 if (font.FIRST <= ch < font.LAST
654 if font.HEIGHT == 16:
797 x0 += font.WIDTH
812 if font.WIDTH == 8:
866 buffer_len = font.HEIGHT * font.MAX_WIDTH * 2
879 if font.OFFSET_WIDTH > 1:
882 if font.OFFSET_WIDTH > 2:
899 to_row = y + font.HEIGHT - 1
[all …]
/AliOS-Things-master/components/freetype/src/cff/
A Dcf2font.c247 font->error = FT_Err_Ok; in cf2_font_setup()
262 if ( font->ppem != ppem ) in cf2_font_setup()
264 font->ppem = ppem; in cf2_font_setup()
269 font->hinted = (FT_Bool)( font->renderingFlags & CF2_FlagsHinted ); in cf2_font_setup()
301 if ( font->stemDarkened != ( font->renderingFlags & CF2_FlagsDarkened ) ) in cf2_font_setup()
303 font->stemDarkened = in cf2_font_setup()
406 if ( font->darkenX != 0 || font->darkenY != 0 ) in cf2_font_setup()
414 cf2_blues_init( &font->blues, font ); in cf2_font_setup()
446 if ( font->error ) in cf2_getGlyphOutline()
470 if ( font->error ) in cf2_getGlyphOutline()
[all …]
A Dcffload.c634 if ( !font->psnames ) in cff_index_get_sid_string()
1453 FT_ZERO( font ); in cff_font_load()
1456 font->stream = stream; in cff_font_load()
1457 font->memory = memory; in cff_font_load()
1509 font->num_faces = font->name_index.count; in cff_font_load()
1614 font->num_glyphs = font->charstrings_index.count; in cff_font_load()
1628 error = cff_charset_load( &font->charset, font->num_glyphs, stream, in cff_font_load()
1649 font->font_name = cff_index_get_name( font, subfont_index ); in cff_font_load()
1682 cff_charset_done( &font->charset, font->stream ); in cff_font_done()
1686 CFF_Done_FD_Select( &font->fd_select, font->stream ); in cff_font_done()
[all …]
A Dcf2ft.c99 CF2_Font font = (CF2_Font)ptr; in cf2_free_instance() local
102 if ( font ) in cf2_free_instance()
104 FT_Memory memory = font->memory; in cf2_free_instance()
275 CF2_Font font; in cf2_decoder_parse_charstrings() local
297 font->memory = memory; in cf2_decoder_parse_charstrings()
300 cf2_outline_init( &font->outline, font->memory, &font->error ); in cf2_decoder_parse_charstrings()
305 font->decoder = decoder; in cf2_decoder_parse_charstrings()
306 font->outline.decoder = decoder; in cf2_decoder_parse_charstrings()
341 font->renderingFlags = 0; in cf2_decoder_parse_charstrings()
343 font->renderingFlags |= CF2_FlagsHinted; in cf2_decoder_parse_charstrings()
[all …]
A Dcffload.h34 cff_index_get_string( CFF_Font font,
38 cff_index_get_sid_string( CFF_Font font,
53 cff_index_get_name( CFF_Font font,
66 CFF_Font font,
70 cff_font_done( CFF_Font font );
A Dcf2hints.c288 hintmap->font = font; in cf2_hintmap_init()
757 CF2_Font font = hintmap->font; in cf2_hintmap_build() local
801 if ( font->blues.doEmBoxHints ) in cf2_hintmap_build()
831 font, in cf2_hintmap_build()
838 font, in cf2_hintmap_build()
931 font, in cf2_hintmap_build()
938 font, in cf2_hintmap_build()
1017 glyphpath->font = font; in cf2_glyphpath_init()
1026 font, in cf2_glyphpath_init()
1031 font, in cf2_glyphpath_init()
[all …]
A Dcf2blues.c67 CF2_Font font ) in cf2_blues_init() argument
70 CFF_Decoder* decoder = font->decoder; in cf2_blues_init()
90 CF2_Int unitsPerEm = font->unitsPerEm; in cf2_blues_init()
98 blues->scale = font->innerTransform.d; in cf2_blues_init()
125 font->font, in cf2_blues_init()
172 2 * font->darkenY; in cf2_blues_init()
216 blues->zone[blues->count].csTopEdge += 2 * font->darkenY; in cf2_blues_init()
217 blues->zone[blues->count].csBottomEdge += 2 * font->darkenY; in cf2_blues_init()
343 flatFamilyEdge += 2 * font->darkenY; /* bottom edge */ in cf2_blues_init()
423 if ( font->stemDarkened ) in cf2_blues_init()
A Dcf2intrp.c281 cf2_doStems( const CF2_Font font, in cf2_doStems() argument
299 if ( font->decoder->width_only ) in cf2_doStems()
436 FT_Error* error = &font->error; in cf2_interpT2CharString()
437 FT_Memory memory = font->memory; in cf2_interpT2CharString()
491 font, in cf2_interpT2CharString()
499 &font->blues, in cf2_interpT2CharString()
599 cf2_doStems( font, in cf2_interpT2CharString()
620 cf2_doStems( font, in cf2_interpT2CharString()
1110 cf2_interpT2CharString( font, in cf2_interpT2CharString()
1153 cf2_doStems( font, in cf2_interpT2CharString()
[all …]
/AliOS-Things-master/components/SDL2/src/ttf/
A DSDL_ttf.c404 font = (TTF_Font*)SDL_malloc(sizeof *font); in TTF_OpenFontIndexRW()
413 SDL_memset(font, 0, sizeof(*font)); in TTF_OpenFontIndexRW()
492 font->height = font->ascent - font->descent + /* baseline */ 1; in TTF_OpenFontIndexRW()
517 font->lineskip = FT_CEIL(font->ascent); in TTF_OpenFontIndexRW()
529 font->ascent, font->descent); in TTF_OpenFontIndexRW()
531 font->height, font->lineskip); in TTF_OpenFontIndexRW()
548 font->style = font->face_style; in TTF_OpenFontIndexRW()
554 font->glyph_italics *= font->height; in TTF_OpenFontIndexRW()
614 if (!font || !font->face) { in Load_Glyph()
926 font->current = &font->cache[h]; in Find_Glyph()
[all …]
/AliOS-Things-master/components/SDL2/include/
A DSDL_ttf.h132 extern DECLSPEC int SDLCALL TTF_FontHeight(const TTF_Font *font);
137 extern DECLSPEC int SDLCALL TTF_FontAscent(const TTF_Font *font);
142 extern DECLSPEC int SDLCALL TTF_FontDescent(const TTF_Font *font);
152 extern DECLSPEC long SDLCALL TTF_FontFaces(const TTF_Font *font);
255 #define TTF_RenderText(font, text, fg, bg) \ argument
256 TTF_RenderText_Shaded(font, text, fg, bg)
257 #define TTF_RenderUTF8(font, text, fg, bg) \ argument
258 TTF_RenderUTF8_Shaded(font, text, fg, bg)
259 #define TTF_RenderUNICODE(font, text, fg, bg) \ argument
260 TTF_RenderUNICODE_Shaded(font, text, fg, bg)
[all …]
/AliOS-Things-master/components/freetype/src/bdf/
A Dbdflib.c1047 p = font->user_props + font->nuser_props; in bdf_create_property()
1147 cp = font->comments + font->comments_len; in _bdf_add_comment()
1175 if ( font == 0 || font->name == 0 || font->name[0] == 0 ) in _bdf_set_default_spacing()
1357 if ( font->props_used == font->props_size ) in _bdf_add_property()
1372 fp = font->props + font->props_size; in _bdf_add_property()
1383 fp = font->props + font->props_used; in _bdf_add_property()
1489 font = p->font; in _bdf_parse_glyphs()
2126 font = p->font = 0; in _bdf_parse_start()
2130 p->font = font; in _bdf_parse_start()
2403 p->font->monowidth = p->font->bbx.width; in bdf_load_font()
[all …]
A Dbdfdrivr.c204 bdf_font_t* font = bdf->bdffont; in bdf_interpret_style() local
347 bdf_font_t* font = NULL; in BDF_Face_Init() local
374 face->bdffont = font; in BDF_Face_Init()
393 font->glyphs_size, in BDF_Face_Init()
394 font->glyphs_used )); in BDF_Face_Init()
396 font->unencoded_size, in BDF_Face_Init()
397 font->unencoded_used )); in BDF_Face_Init()
430 bdfface->num_glyphs = font->glyphs_size + 1; in BDF_Face_Init()
443 bsize->height = (FT_Short)( font->font_ascent + font->font_descent ); in BDF_Face_Init()
485 bdf_glyph_t* cur = font->glyphs; in BDF_Face_Init()
[all …]
/AliOS-Things-master/components/freetype/src/winfonts/
A Dwinfnt.c193 FNT_Font font = face->font; in fnt_font_done() local
196 if ( !font ) in fnt_font_done()
204 face->font = 0; in fnt_font_done()
280 face->font = 0; in fnt_face_get_dll_font()
597 FNT_Font font = face->font; in fnt_cmap_init() local
718 font = face->font; in FNT_Face_Init()
740 FNT_Font font = face->font; in FNT_Face_Init() local
749 if ( font->header.avg_width == font->header.max_width ) in FNT_Face_Init()
836 if ( font->header.last_char < font->header.first_char ) in FNT_Face_Init()
978 font = face->font; in FNT_Load_Glyph()
[all …]
/AliOS-Things-master/components/SDL2/src/gfx/Docs/html/
A Ddoxygen.css5 font-size: 13px;
12 font-size: 150%;
16 font-size: 150%;
17 font-weight: bold;
22 font-size: 120%;
26 font-size: 100%;
30 font-weight: bold;
59 font-weight: bold;
141 font-size: 105%;
151 font-size: 9pt;
[all …]
A Dtabs.css5 font-size: 13px;
9 font-size: 10px;
12 font-size: 9px;
32 font-weight: bold;
/AliOS-Things-master/documentation/doxygen/style/
A Ddoxygen-custom.css14 font-size: 150%;
19 font-size: 150%;
20 font-weight: bold;
27 font-size: 150%;
28 font-weight: normal;
36 font-size: 100%;
53 font-weight: bold;
106 font-size: 70%;
111 font-size: 90%;
150 font-size: 130%;
[all …]
/AliOS-Things-master/components/littlevgl/src/lv_font/
A Dlv_font_fmt_txt.c26 static uint32_t get_glyph_dsc_id(const lv_font_t * font, uint32_t letter);
27 static int8_t get_kern_value(const lv_font_t * font, uint32_t gid_left, uint32_t gid_right);
56 lv_font_fmt_txt_dsc_t * fdsc = (lv_font_fmt_txt_dsc_t *) font->dsc; in lv_font_get_bitmap_fmt_txt()
57 uint32_t gid = get_glyph_dsc_id(font, unicode_letter); in lv_font_get_bitmap_fmt_txt()
78 lv_font_fmt_txt_dsc_t * fdsc = (lv_font_fmt_txt_dsc_t *) font->dsc; in lv_font_get_glyph_dsc_fmt_txt()
79 uint32_t gid = get_glyph_dsc_id(font, unicode_letter); in lv_font_get_glyph_dsc_fmt_txt()
84 uint32_t gid_next = get_glyph_dsc_id(font, unicode_letter_next); in lv_font_get_glyph_dsc_fmt_txt()
86 kvalue = get_kern_value(font, gid, gid_next); in lv_font_get_glyph_dsc_fmt_txt()
110 static uint32_t get_glyph_dsc_id(const lv_font_t * font, uint32_t letter) in get_glyph_dsc_id() argument
114 lv_font_fmt_txt_dsc_t * fdsc = (lv_font_fmt_txt_dsc_t *) font->dsc; in get_glyph_dsc_id()
[all …]
/AliOS-Things-master/components/freetype/src/tools/ftrandom/
A DREADME5 of extensions of fonts to be tested. It will randomly pick a font, copy it,
10 For each erroneous font it
13 opens each font in the file;
20 ftrandom saves the erroneous font and continues. If the tester exits
21 normally or with an error, then the superstructure removes the test font and
26 --all Test every font in the directory(ies) no matter
34 --error-fraction <frac> Multiply the file size of the font by <frac> and
36 font file.
37 --ext <ext> Add <ext> to the set of font types tested. Known
/AliOS-Things-master/components/littlevgl/src/lv_draw/
A Dlv_draw_label.c61 const lv_font_t * font = style->text.font; in lv_draw_label() local
69 …lv_txt_get_size(&p, txt, style->text.font, style->text.letter_space, style->text.line_space, LV_CO… in lv_draw_label()
74 lv_coord_t line_height = lv_font_get_line_height(font) + style->text.line_space; in lv_draw_label()
108 …uint32_t line_end = line_start + lv_txt_get_next_line(&txt[line_start], font, style->text.letter_s… in lv_draw_label()
114 line_end += lv_txt_get_next_line(&txt[line_start], font, style->text.letter_space, w, flag); in lv_draw_label()
129 …line_width = lv_txt_get_width(&txt[line_start], line_end - line_start, font, style->text.letter_sp… in lv_draw_label()
206 letter_w = lv_font_get_glyph_width(font, letter, letter_next); in lv_draw_label()
220 lv_draw_letter(&pos, mask, font, letter, color, opa); in lv_draw_label()
228 line_end += lv_txt_get_next_line(&txt[line_start], font, style->text.letter_space, w, flag); in lv_draw_label()
234 … lv_txt_get_width(&txt[line_start], line_end - line_start, font, style->text.letter_space, flag); in lv_draw_label()
[all …]
/AliOS-Things-master/components/py_engine/engine/extmod/
A Dmodframebuf.c611 if(font == &HZK12){ in hz_get_mat()
634 if(font->fp == NULL){ in hz_get_mat()
635 font->fp = fopen(font->font_path , "rb"); in hz_get_mat()
651 if (font->font_height == 40 || font->font_height == 48) { in hz_print_mat()
666 } else if (font->font_height == 16 || font->font_height == 24 || font->font_height == 32) { in hz_print_mat()
706 unsigned char offset_step = (font->font_width * font->font_height / 8); in asc_get_mat()
709 if(font->fp == NULL){ in asc_get_mat()
710 font->fp = fopen(font->font_path , "rb"); in asc_get_mat()
726 if (font->font_height == 12 || font->font_height == 48) { in asc_print_mat()
794 if(font != -1){ in framebuf_text_helper()
[all …]
/AliOS-Things-master/components/littlevgl/src/lv_objx/
A Dlv_label.c484 const lv_font_t * font = style->text.font; in lv_label_get_letter_pos() local
485 uint8_t letter_height = lv_font_get_line_height(font); in lv_label_get_letter_pos()
553 const lv_font_t * font = style->text.font; in lv_label_get_letter_on() local
554 uint8_t letter_height = lv_font_get_line_height(font); in lv_label_get_letter_on()
608 x += lv_font_get_glyph_width(font, letter, letter_next); in lv_label_get_letter_on()
668 const lv_font_t * font = style->text.font; in lv_label_is_char_under_pos() local
669 uint8_t letter_height = lv_font_get_line_height(font); in lv_label_is_char_under_pos()
724 x += lv_font_get_glyph_width(font, letter, letter_next); in lv_label_is_char_under_pos()
898 ofs.y = ext->offset.y + size.y + lv_font_get_line_height(style->text.font); in lv_label_design()
976 const lv_font_t * font = style->text.font; in lv_label_refr_text() local
[all …]
/AliOS-Things-master/solutions/miniapp_agent_demo/miniapp/
A Dapp.acss8 font-family: -apple-system-font, Helvetica Neue, Helvetica, sans-serif;
9 font-size: 24rpx;
82 font-size: 34rpx;
90 font-size: 34rpx;
/AliOS-Things-master/components/ugraphics/src/
A Dugraphics.c11 TTF_Font *font = NULL; variable
52 if (font) { in ugraphics_load_font()
62 font = TTF_OpenFont(filename, size); in ugraphics_load_font()
63 if (!font) { in ugraphics_load_font()
74 if (font) in ugraphics_set_font_style()
75 TTF_SetFontStyle(font, style); in ugraphics_set_font_style()
97 if (font) { in ugraphics_quit()
98 TTF_CloseFont(font); in ugraphics_quit()
141 SDL_Surface *surface = TTF_RenderUTF8_Blended(font, string, color); in graphics_generate_text()
/AliOS-Things-master/components/littlevgl/src/lv_misc/
A Dlv_txt.h74 void lv_txt_get_size(lv_point_t * size_res, const char * text, const lv_font_t * font, lv_coord_t l…
88 uint16_t lv_txt_get_next_line(const char * txt, const lv_font_t * font, lv_coord_t letter_space, lv…
101 lv_coord_t lv_txt_get_width(const char * txt, uint16_t length, const lv_font_t * font, lv_coord_t l…
A Dlv_txt.c92 void lv_txt_get_size(lv_point_t * size_res, const char * text, const lv_font_t * font, lv_coord_t l… in lv_txt_get_size() argument
99 if(font == NULL) return; in lv_txt_get_size()
106 uint8_t letter_height = lv_font_get_line_height(font); in lv_txt_get_size()
110 … new_line_start += lv_txt_get_next_line(&text[line_start], font, letter_space, max_width, flag); in lv_txt_get_size()
115 …act_line_length = lv_txt_get_width(&text[line_start], new_line_start - line_start, font, letter_sp… in lv_txt_get_size()
142 uint16_t lv_txt_get_next_line(const char * txt, const lv_font_t * font, lv_coord_t letter_space, lv… in lv_txt_get_next_line() argument
146 if(font == NULL) return 0; in lv_txt_get_next_line()
181 letter_w = lv_font_get_glyph_width(font, letter, letter_next); in lv_txt_get_next_line()
226 lv_coord_t lv_txt_get_width(const char * txt, uint16_t length, const lv_font_t * font, lv_coord_t l… in lv_txt_get_width() argument
230 if(font == NULL) return 0; in lv_txt_get_width()
[all …]

Completed in 58 milliseconds

12345