windows.fonts: call reset-memoized for windows-fonts on startup
parent
858c9b3a96
commit
4f74f5bd69
|
@ -39,7 +39,10 @@ MEMO:: (cache-font) ( name size bold? italic? -- HFONT )
|
|||
{ [ name>> ] [ size>> ] [ bold?>> ] [ italic?>> ] } cleave
|
||||
(cache-font) ;
|
||||
|
||||
[ \ (cache-font) reset-memoized ] "windows.fonts" add-startup-hook
|
||||
[
|
||||
\ (cache-font) reset-memoized
|
||||
\ windows-fonts reset-memoized
|
||||
] "windows.fonts" add-startup-hook
|
||||
|
||||
: TEXTMETRIC>metrics ( TEXTMETRIC -- metrics )
|
||||
[ metrics new 0 >>width ] dip {
|
||||
|
|
Loading…
Reference in New Issue