summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorMarcoen Hirschberg <marcoen@gmail.com>2005-12-06 13:27:15 +0000
committerMarcoen Hirschberg <marcoen@gmail.com>2005-12-06 13:27:15 +0000
commitb0fee17d6e1a463dcd84568e5997663b69488998 (patch)
treefffce775c4d1636a8bbc9e97669aa99b9378fc15 /firmware/export
parent01917ec9809f1abff87cb372b700fc09476d343e (diff)
downloadrockbox-b0fee17d6e1a463dcd84568e5997663b69488998.tar.gz
rockbox-b0fee17d6e1a463dcd84568e5997663b69488998.zip
waiting is over: initial unicode commit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8169 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/bidi.h4
-rw-r--r--firmware/export/font.h13
-rw-r--r--firmware/export/id3.h2
3 files changed, 14 insertions, 5 deletions
diff --git a/firmware/export/bidi.h b/firmware/export/bidi.h
index 88e2eeb07e..36ff46c6c0 100644
--- a/firmware/export/bidi.h
+++ b/firmware/export/bidi.h
@@ -17,7 +17,5 @@
17 * 17 *
18 ****************************************************************************/ 18 ****************************************************************************/
19#ifndef BIDI_H 19#ifndef BIDI_H
20extern unsigned char *bidi_l2v(const unsigned char *str, int orientation); 20extern unsigned short *bidi_l2v(const unsigned char *str, int orientation);
21extern bool bidi_support_enabled;
22extern void set_bidi_support(bool setting);
23#endif 21#endif
diff --git a/firmware/export/font.h b/firmware/export/font.h
index beb63470bf..ccdb30ff00 100644
--- a/firmware/export/font.h
+++ b/firmware/export/font.h
@@ -31,10 +31,16 @@
31#if LCD_HEIGHT > 64 31#if LCD_HEIGHT > 64
32#define MAX_FONT_SIZE 10000 32#define MAX_FONT_SIZE 10000
33#else 33#else
34#define MAX_FONT_SIZE 4000 34#define MAX_FONT_SIZE 4000
35#endif 35#endif
36#endif 36#endif
37 37
38#ifndef FONT_HEADER_SIZE
39#define FONT_HEADER_SIZE 36
40#endif
41
42#define GLYPH_CACHE_FILE "/.rockbox/.glyphcache"
43
38/* 44/*
39 * Fonts are specified by number, and used for display 45 * Fonts are specified by number, and used for display
40 * of menu information as well as mp3 filename data. 46 * of menu information as well as mp3 filename data.
@@ -88,6 +94,7 @@ struct font {
88 const unsigned short *offset; /* offsets into bitmap data*/ 94 const unsigned short *offset; /* offsets into bitmap data*/
89 const unsigned char *width; /* character widths or NULL if fixed*/ 95 const unsigned char *width; /* character widths or NULL if fixed*/
90 int defaultchar; /* default char (not glyph index)*/ 96 int defaultchar; /* default char (not glyph index)*/
97 long bits_size; /* # bytes of glyph bits*/
91}; 98};
92 99
93/* font routines*/ 100/* font routines*/
@@ -96,6 +103,10 @@ struct font* font_load(const char *path);
96struct font* font_get(int font); 103struct font* font_get(int font);
97void font_reset(void); 104void font_reset(void);
98int font_getstringsize(const unsigned char *str, int *w, int *h, int fontnumber); 105int font_getstringsize(const unsigned char *str, int *w, int *h, int fontnumber);
106int font_get_width(struct font* ft, unsigned short ch);
107const unsigned char * font_get_bits(struct font* ft, unsigned short ch);
108void glyph_cache_save(void);
109void glyph_cache_load(void);
99 110
100#else /* HAVE_LCD_BITMAP */ 111#else /* HAVE_LCD_BITMAP */
101 112
diff --git a/firmware/export/id3.h b/firmware/export/id3.h
index df0c61f473..5090534e99 100644
--- a/firmware/export/id3.h
+++ b/firmware/export/id3.h
@@ -94,7 +94,7 @@ struct mp3entry {
94 94
95 /* these following two fields are used for local buffering */ 95 /* these following two fields are used for local buffering */
96 char id3v2buf[300]; 96 char id3v2buf[300];
97 char id3v1buf[3][32]; 97 char id3v1buf[3][92];
98 98
99 /* resume related */ 99 /* resume related */
100 unsigned long offset; /* bytes played */ 100 unsigned long offset; /* bytes played */