Skip to content

Commit

Permalink
docs(README): improve documentation
Browse files Browse the repository at this point in the history
- Added the missing `font.size` to the property list
- Removed duplicated entries in `fill.pattern`
- Fixed title level of "Rich Text" section
  • Loading branch information
zypA13510 authored May 13, 2019
1 parent 83cf728 commit b32bc59
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@ font.size = 20; // Cell A3 now has font size 20!
| family | Font family for fallback. An integer value. | 1 - Serif, 2 - Sans Serif, 3 - Mono, Others - unknown |
| scheme | Font scheme. | 'minor', 'major', 'none' |
| charset | Font charset. An integer value. | 1, 2, etc. |
| size | Font <span style="font-size: 1.5em">size</span>. An integer value. | 9, 10, 12, 16, etc. |
| color | Colour description, an object containing an ARGB value. | { argb: 'FFFF0000'} |
| bold | Font **weight** | true, false |
| italic | Font *slope* | true, false |
Expand Down Expand Up @@ -1033,7 +1034,6 @@ ws.getCell('A2').fill = {

* none
* solid
* darkVertical
* darkGray
* mediumGray
* lightGray
Expand All @@ -1051,7 +1051,6 @@ ws.getCell('A2').fill = {
* lightUp
* lightGrid
* lightTrellis
* lightGrid

#### Gradient Fills

Expand All @@ -1070,7 +1069,7 @@ For example, Excel only supports angle gradients of 0, 45, 90 and 135.
Similarly the sequence of stops may also be limited by the UI with positions [0,1] or [0,0.5,1] as the only options.
Take care with this fill to be sure it is supported by the target XLSX viewers.

#### Rich Text
### Rich Text

Individual cells now support rich text or in-cell formatting.
Rich text values can control the font properties of any number of sub-strings within the text value.
Expand Down

0 comments on commit b32bc59

Please sign in to comment.