Lines Matching refs:position
25 size_t position; member
35 if(to_read + stream->position >= stream->size) { in ttf_cb_stream_read()
36 to_read = stream->size - stream->position; in ttf_cb_stream_read()
38 lv_memcpy(data, ((const unsigned char *)stream->data + stream->position), to_read); in ttf_cb_stream_read()
39 stream->position += to_read; in ttf_cb_stream_read()
42 static void ttf_cb_stream_seek(ttf_cb_stream_t * stream, size_t position) in ttf_cb_stream_seek() argument
45 lv_fs_seek(stream->file, position, LV_FS_SEEK_SET); in ttf_cb_stream_seek()
48 if(position > stream->size) { in ttf_cb_stream_seek()
49 stream->position = stream->size; in ttf_cb_stream_seek()
52 stream->position = position; in ttf_cb_stream_seek()
198 dsc->stream.position = 0; in lv_tiny_ttf_create()