File tree Expand file tree Collapse file tree 3 files changed +12
-26
lines changed Expand file tree Collapse file tree 3 files changed +12
-26
lines changed Original file line number Diff line number Diff line change 26
26
"@litecanvas/plugin-asset-loader" : " latest" ,
27
27
"@litecanvas/plugin-frame-rate-meter" : " latest" ,
28
28
"@litecanvas/plugin-migrate" : " latest" ,
29
- "@litecanvas/plugin-pixel-font" : " ^0.0.1 " ,
29
+ "@litecanvas/plugin-pixel-font" : " latest " ,
30
30
"@litecanvas/utils" : " latest" ,
31
31
"codemirror" : " ^6.0.2" ,
32
32
"eslint-linter-browserify" : " 9.30.0" ,
Original file line number Diff line number Diff line change @@ -743,7 +743,16 @@ <h3>Extra packages</h3>
743
743
</ a >
744
744
</ strong >
745
745
< br >
746
- < small > < em > Tip: Press < code > F1</ code > to show the FPS monitor in the preview</ em > </ small >
746
+ < small > Tip: Call < strong > < code > FPS_METER.display(false)</ code > </ strong > in your function < code > init()</ code > to disable it.</ small >
747
+ </ li >
748
+ < li >
749
+ < strong >
750
+ < a href ="https://github.com/litecanvas/plugin-pixel-font ">
751
+ https://github.com/litecanvas/plugin-pixel-font
752
+ </ a >
753
+ </ strong >
754
+ < br >
755
+ < small > Tip: Call < strong > < code > textfont(PIXEL_FONT_BASIC)</ code > </ strong > to activate the pixel font.</ small >
747
756
</ li >
748
757
< li >
749
758
< strong >
@@ -808,29 +817,6 @@ <h3>Public assets</h3>
808
817
pop()
809
818
}</ code > </ pre >
810
819
811
- < p >
812
- < strong
813
- > Monogram font by
814
- < a href ="https://datagoblin.itch.io/monogram "> datagoblin</ a > </ strong
815
- >
816
- </ p >
817
-
818
- < pre > < code class ="language-typescript " data-copy ="size-bg pos-absolute "> litecanvas()
819
-
820
- function init() {
821
- // first, load the font
822
- loadFont('monogram', '/fonts/monogram.ttf')
823
- }
824
-
825
- function draw() {
826
- cls(0)
827
- if (LOADING) return; // wait the asset loader
828
-
829
- textfont('monogram') // important: set the font family
830
- textsize(64)
831
- text(0, 0, 'Hello world')
832
- }</ code > </ pre >
833
-
834
820
< h2 > < a id ="tools "> Useful tools</ a > </ h2 >
835
821
836
822
< ul >
Original file line number Diff line number Diff line change 1
1
const cacheName = "luizbills.litecanvas-editor-v1" ;
2
- const version = "2025.7.7.2 " ;
2
+ const version = "2025.7.7.3 " ;
3
3
4
4
const precacheResources = [
5
5
"/" ,
You can’t perform that action at this time.
0 commit comments