diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-07-06 19:29:16 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-07-06 19:29:16 +0100 |
commit | c38670ade8c664fa511cebb4b5d2950b12e7bf81 (patch) | |
tree | 09fe38396c207fd935c817727f5ec2c78f21ced4 /amiga/font_scan.c | |
parent | 8282f53880877f84b1fce05c5529e8994abcb690 (diff) | |
download | netsurf-c38670ade8c664fa511cebb4b5d2950b12e7bf81.tar.gz netsurf-c38670ade8c664fa511cebb4b5d2950b12e7bf81.tar.bz2 |
Allow a fallback font for characters above 0xFFFF to be specified. There is no scanning of this range as most fonts don't have any characters here. Symbola is selected if it is installed.
Diffstat (limited to 'amiga/font_scan.c')
-rw-r--r-- | amiga/font_scan.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/amiga/font_scan.c b/amiga/font_scan.c index 930a15020..4f4b774b1 100644 --- a/amiga/font_scan.c +++ b/amiga/font_scan.c @@ -254,7 +254,12 @@ static ULONG ami_font_scan_font(const char *fontname, lwc_string **glypharray) } #ifdef __amigaos4__ if(EObtainInfo(AMI_OFONT_ENGINE, OT_UnicodeRanges, &unicoderanges, TAG_END) == 0) { - if(unicoderanges & UCR_SURROGATES) LOG("%s supports UTF-16 surrogates", fontname); + if(unicoderanges & UCR_SURROGATES) { + LOG("%s supports UTF-16 surrogates", fontname); + if (nsoption_charp(font_surrogate) == NULL) { + nsoption_set_charp(font_surrogate, (char *)strdup(fontname)); + } + } EReleaseInfo(AMI_OFONT_ENGINE, OT_UnicodeRanges, unicoderanges, TAG_END); |