Import font containing symbols we need for list items.

(Un)Install font appropriately at runtime.
Make list markers use the right characters.

svn path=/trunk/netsurf/; revision=3280
This commit is contained in:
John Mark Bell 2007-05-14 22:57:11 +00:00
parent 7f88d46d98
commit 00377eec58
5 changed files with 51 additions and 5 deletions

View File

@ -95,5 +95,12 @@ Unset Alias$NetSurfRMLoad
CDir <Wimp$ScrapDir>.WWW
CDir <Wimp$ScrapDir>.WWW.NetSurf
| Install NetSurf-specific fonts
| NB: trailing dot is required
FontInstall NetSurf:Resources.Fonts.
WimpSlot -min 2240k -max 2240k
Run <NetSurf$Dir>.!RunImage %*0 2><Wimp$ScrapDir>.WWW.NetSurf.Log
Run <NetSurf$Dir>.!RunImage %*0 2><Wimp$ScrapDir>.WWW.NetSurf.Log
| Uninstall NetSurf-specific fonts
FontRemove NetSurf:Resources.Fonts.

View File

@ -0,0 +1,39 @@
% Encoding vector for NSSymbol
% Codes 0-31
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
/.notdef
% Codes 32-33
/H18543
/circle

Binary file not shown.

Binary file not shown.

View File

@ -426,13 +426,13 @@ bool box_construct_element(xmlNode *n, struct content *content,
marker->length = 3;
break;
case CSS_LIST_STYLE_TYPE_CIRCLE:
/* 2742 CIRCLED OPEN CENTRE EIGHT POINTED STAR*/
marker->text = "\342\235\202";
/* 25CB WHITE CIRCLE */
marker->text = "\342\227\213";
marker->length = 3;
break;
case CSS_LIST_STYLE_TYPE_SQUARE:
/* 25A0 BLACK SQUARE */
marker->text = "\342\226\240";
/* 25AA BLACK SMALL SQUARE */
marker->text = "\342\226\252";
marker->length = 3;
break;
case CSS_LIST_STYLE_TYPE_DECIMAL: