mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 23:39:51 +03:00
[project @ 2004-06-02 21:01:01 by bursa]
Implement enumerate_fonts(). svn path=/import/netsurf/; revision=911
This commit is contained in:
parent
00be6366a7
commit
a9f9cd5e8f
@ -21,18 +21,6 @@ struct font_set {
|
||||
struct font_data *font[FONT_FAMILIES * 4];
|
||||
};
|
||||
|
||||
/**
|
||||
* font id = font family * 4 + bold * 2 + slanted
|
||||
* font family: 0 = sans-serif, 1 = serif, ...
|
||||
*/
|
||||
|
||||
const char * const font_table[FONT_FAMILIES * 4] = {
|
||||
/* sans-serif */
|
||||
"Homerton.Medium\\ELatin1",
|
||||
"Homerton.Medium.Oblique\\ELatin1",
|
||||
"Homerton.Bold\\ELatin1",
|
||||
"Homerton.Bold.Oblique\\ELatin1",
|
||||
};
|
||||
|
||||
static void font_close(struct font_data *data);
|
||||
|
||||
@ -165,3 +153,16 @@ char * font_split(struct font_data *data, const char * text, unsigned int length
|
||||
return text + i;
|
||||
}
|
||||
|
||||
|
||||
const char *enumerate_fonts(struct font_set *set, int *handle)
|
||||
{
|
||||
assert(handle);
|
||||
|
||||
if (!handle) {
|
||||
*handle = 1;
|
||||
return "Homerton.Medium";
|
||||
}
|
||||
|
||||
*handle = -1;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user