mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-01 00:34:31 +03:00
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:
parent
7f88d46d98
commit
00377eec58
@ -95,5 +95,12 @@ Unset Alias$NetSurfRMLoad
|
|||||||
CDir <Wimp$ScrapDir>.WWW
|
CDir <Wimp$ScrapDir>.WWW
|
||||||
CDir <Wimp$ScrapDir>.WWW.NetSurf
|
CDir <Wimp$ScrapDir>.WWW.NetSurf
|
||||||
|
|
||||||
|
| Install NetSurf-specific fonts
|
||||||
|
| NB: trailing dot is required
|
||||||
|
FontInstall NetSurf:Resources.Fonts.
|
||||||
|
|
||||||
WimpSlot -min 2240k -max 2240k
|
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.
|
39
!NetSurf/Resources/Fonts/NSSymbol/Encoding
Normal file
39
!NetSurf/Resources/Fonts/NSSymbol/Encoding
Normal 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
|
BIN
!NetSurf/Resources/Fonts/NSSymbol/IntMetrics,ff6
Normal file
BIN
!NetSurf/Resources/Fonts/NSSymbol/IntMetrics,ff6
Normal file
Binary file not shown.
BIN
!NetSurf/Resources/Fonts/NSSymbol/Outlines,ff6
Normal file
BIN
!NetSurf/Resources/Fonts/NSSymbol/Outlines,ff6
Normal file
Binary file not shown.
@ -426,13 +426,13 @@ bool box_construct_element(xmlNode *n, struct content *content,
|
|||||||
marker->length = 3;
|
marker->length = 3;
|
||||||
break;
|
break;
|
||||||
case CSS_LIST_STYLE_TYPE_CIRCLE:
|
case CSS_LIST_STYLE_TYPE_CIRCLE:
|
||||||
/* 2742 CIRCLED OPEN CENTRE EIGHT POINTED STAR*/
|
/* 25CB WHITE CIRCLE */
|
||||||
marker->text = "\342\235\202";
|
marker->text = "\342\227\213";
|
||||||
marker->length = 3;
|
marker->length = 3;
|
||||||
break;
|
break;
|
||||||
case CSS_LIST_STYLE_TYPE_SQUARE:
|
case CSS_LIST_STYLE_TYPE_SQUARE:
|
||||||
/* 25A0 BLACK SQUARE */
|
/* 25AA BLACK SMALL SQUARE */
|
||||||
marker->text = "\342\226\240";
|
marker->text = "\342\226\252";
|
||||||
marker->length = 3;
|
marker->length = 3;
|
||||||
break;
|
break;
|
||||||
case CSS_LIST_STYLE_TYPE_DECIMAL:
|
case CSS_LIST_STYLE_TYPE_DECIMAL:
|
||||||
|
Loading…
Reference in New Issue
Block a user