Skip to content

Commit

Permalink
Doc: Fix a some information on the README (#197)
Browse files Browse the repository at this point in the history
fix documentation
  • Loading branch information
olivierodo authored Oct 3, 2024
1 parent 1d70ad9 commit 27d6695
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const text = 'Lorem ipsum dolor sit amet';
// OR with some formatting
const text: Word[] = [
{ text: 'Lorem' },
{ text: 'ipsum', format: { fontWeight: 'bold', color: 'red' } },
{ text: 'ipsum', format: { fontWeight: 'bold', fontColor: 'red' } },
{ text: 'dolor', format: { fontStyle: 'italic' } },
{ text: 'sit' },
{ text: 'amet' },
Expand Down Expand Up @@ -179,7 +179,7 @@ You can run this demo locally with `npm run node:demo`
| `y` | `0` | Y position of the text box. |
| `align` | `center` | Text align. Other possible values: `left`, `right`. |
| `vAlign` | `middle` | Text vertical align. Other possible values: `top`, `bottom`. |
| `font` | `Arial` | Base font family of the text. |
| `fontFamily` | `Arial` | Base font family of the text. |
| `fontSize` | `14` | Base font size of the text in px. |
| `fontStyle` | `''` | Base font style, same as css font-style. Examples: `italic`, `oblique 40deg`. |
| `fontVariant` | `''` | Base font variant, same as css font-variant. Examples: `small-caps`. |
Expand Down Expand Up @@ -327,7 +327,7 @@ const drawWords = (baseFormat: TextFormat, spec: RenderSpec) => {

const words: Word[] = [
{ text: 'Lorem' },
{ text: 'ipsum', format: { fontWeight: 'bold', color: 'red' } },
{ text: 'ipsum', format: { fontWeight: 'bold', fontColor: 'red' } },
{ text: 'dolor', format: { fontStyle: 'italic' } },
{ text: 'sit' },
{ text: 'amet' },
Expand Down

0 comments on commit 27d6695

Please sign in to comment.