Support fractional font sizes and numeric weights in XRC
Change the code to handle them, the XRC sample to test them, the schema to accept them and the documentation to describe them.
This commit is contained in:
parent
aedf89b098
commit
ca164bb4ca
4 changed files with 56 additions and 22 deletions
|
|
@ -454,11 +454,11 @@ t_bitmap = t_url?,
|
|||
)?
|
||||
|
||||
t_font = (
|
||||
[xrc:p="o"] element size {_, t_integer }* &
|
||||
[xrc:p="o"] element size {_, t_float }* &
|
||||
[xrc:p="o"] element style {_, ("normal" | "italic" | "slant") }* &
|
||||
[xrc:p="o"] element weight {_, ("normal" | "thin" | "extralight" | "light" |
|
||||
"medium" | "semibold" | "bold" | "extrabold" |
|
||||
"heavy" | "extraheavy") }* &
|
||||
"heavy" | "extraheavy" | t_integer) }* &
|
||||
[xrc:p="o"] element family {_, ("roman" | "script" | "decorative" | "swiss" |
|
||||
"modern" | "teletype") }* &
|
||||
[xrc:p="o"] element underlined {_, t_bool }* &
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue