Skip to content

Commit

Permalink
Add link of demo
Browse files Browse the repository at this point in the history
  • Loading branch information
rexrainbow committed Oct 8, 2024
1 parent 6907fb2 commit 891ced9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/docs/bbcodetext.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Drawing text with [BBCode](https://en.wikipedia.org/wiki/BBCode) protocol.
- [Page, typing](https://codepen.io/rexrainbow/pen/yjZveb)
- [Wrap](https://codepen.io/rexrainbow/pen/BaZEGOB)
- [Mix wrap](https://codepen.io/rexrainbow/pen/abMdPBr)
- [Font family](https://codepen.io/rexrainbow/pen/wvVzydL)
- [Measure margin of text](https://codepen.io/rexrainbow/pen/eYEOYzX)
- [Generate texture](https://codepen.io/rexrainbow/pen/vYJQrrX)
- [Image height](https://codepen.io/rexrainbow/pen/yLKNVaW)
Expand Down Expand Up @@ -93,6 +94,7 @@ Drawing text with [BBCode](https://en.wikipedia.org/wiki/BBCode) protocol.
- `[color=rgb(255,0,0)]text[/color]`
- `[color=rgba(255,0,0,1)]text[/color]`
- Size : `[size=18]text[/size]`
- Family : `[family=papyrus]text[/family]`
- Stroke : `[stroke]text[/stroke]`
- Stroke with color setting : `[stroke=red]text[/stroke]`
- Shadow : `[shadow]text[/shadow]`
Expand Down
2 changes: 1 addition & 1 deletion examples/bbcodetext/font-family.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Demo extends Phaser.Scene {
create() {
var s = 'Hello [family=Roboto Condensed, fantasy]Hello[/family] Hello'
this.add.rexBBCodeText(200, 300, s, {
fontFamily: 'Papyrus',
fontFamily: 'papyrus',
fontSize: 40
})
}
Expand Down

0 comments on commit 891ced9

Please sign in to comment.