mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Symbol font measurments (margin/fontsize) now scaled by font size, this requires all symbol files to change (or you get really large margins);
Symbol fonts now support stretching/compressing of text; Made the default symbols of mana-future lighter (compare with real cards); Use sort_text instead of sort for vanguard; Fixed initial card list for vs git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@643 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -10,6 +10,7 @@ A reference to a normal [[type:font]] for drawing text.
|
||||
| @italic name@ [[type:scriptable]] [[type:string]] Optionally, a different font to use for italic text instead of the normal italic version of the font.
|
||||
| @size@ [[type:scriptable]] [[type:double]] ''required'' Size of the font in points on a 96 DPI display.
|
||||
| @scale down to@ [[type:double]] ∞ Minimum size in points to scale the size down to.
|
||||
| @max stretch@ [[type:double]] @1.0@ Maximum multiplier by which the width of the text is compressed, so @max width: 0.5@ means the text can be compressed to half the normal width.
|
||||
| @weight@ [[type:scriptable]] font weight @"normal"@ Weight of the font, one of @"normal"@ or @"bold"@. This can be changed locally by [[type:tagged string|tags]].
|
||||
| @style@ [[type:scriptable]] font style @"normal"@ Style of the font, one of @"normal"@ or @"italic"@. This can be changed locally by [[type:tagged string|tags]].
|
||||
| @underline@ [[type:scriptable]] [[type:boolean]] @false@ Should the font be underlined?
|
||||
|
||||
@@ -23,6 +23,10 @@ This resulution could correspond to a point size of for instance 150pt.
|
||||
|
||||
When the symbol is drawn at for instance 12pt the image well then be scalled down to @200/150*12 == 16@ pixels.
|
||||
|
||||
Sizes like margin, padding and font size are given in 'pixels per point'. If for instance
|
||||
> text margin left: 0.1
|
||||
is specified, and the symbol is rendered at 12pt, the margin will be @12*0.1 == 1.2@ pixels.
|
||||
|
||||
--Package format--
|
||||
|
||||
A symbol font is described in a [[file:package]] with the <tt>.mse-symbol-font</tt> file extension.
|
||||
@@ -44,15 +48,15 @@ Such a package contains a [[file:format|data file]] called <tt>symbol-font</tt>
|
||||
| @horizontal space@ [[type:double]] @0@ Horizontal spacing between symbols, in pixels.
|
||||
| @vertical space@ [[type:double]] @0@ Vertical spacing between symbols, in pixels.
|
||||
| @symbols@ [[type:list]] of [[type:symbol font symbol]]s Symbols that make up this font.
|
||||
| @text font@ [[type:font]] Font to use for drawing text on symbols, only used if there is a default symbol.
|
||||
| @text font@ [[type:font]] Font to use for drawing text on symbols, only used if there is a default symbol. The font size is in points per point.
|
||||
| @scale text@ [[type:boolean]] @false@ Should text be scaled down to fit in a symbol?
|
||||
| @merge numbers@ [[type:boolean]] @false@ Should a numeric value of multiple digits be rendered as a single symbol?<br/>
|
||||
Note: @merge numbers@ is deprecated, use @as text: [0-9]+@ instead.
|
||||
| @as text@ [[type:regex]] @"."@ What should be rendered as a single piece of text?
|
||||
| @text margin left@ [[type:double]] @0@ Margin on the left of the text in pixels.
|
||||
| @text margin right@ [[type:double]] @0@ Margin on the right of the text in pixels.
|
||||
| @text margin top@ [[type:double]] @0@ Margin on the top of the text in pixels.
|
||||
| @text margin bottom@ [[type:double]] @0@ Margin on the bottom of the text in pixels.
|
||||
| @text margin left@ [[type:double]] @0@ Margin on the left of the text in pixels per point.
|
||||
| @text margin right@ [[type:double]] @0@ Margin on the right of the text in pixels per point.
|
||||
| @text margin top@ [[type:double]] @0@ Margin on the top of the text in pixels per point.
|
||||
| @text margin bottom@ [[type:double]] @0@ Margin on the bottom of the text in pixels per point.
|
||||
| @text alignment@ [[type:alignment]] @"middle center"@ How should text be aligned on symbols?
|
||||
| @insert symbol menu@ [[type:insert symbol menu|"insert symbol" menu]] ''none'' A description of the menu to insert a symbol into the text.
|
||||
|
||||
|
||||
@@ -4,11 +4,14 @@ A word in a [[type:word list]].
|
||||
|
||||
--Properties--
|
||||
! Property Type Default Description
|
||||
| @name@ [[type:string]] ''Required'' The word
|
||||
| @name@ [[type:string]] ''Required'' The word.
|
||||
| @line below@ [[type:boolean]] @false@ Display a line below this item in the list?
|
||||
| @is prefix@ [[type:boolean]] @false@ Should this word be used as a prefix before another word from the list?<br/>
|
||||
Think "Legendary ". Note the space after it, words are directly concatenated.
|
||||
| @words@ [[type:list]] of [[type:word list word]]s A submenu
|
||||
| @words@ [[type:list]] of [[type:word list word]]s A submenu. If given, the @name@ of this word is only used as a label for the menu.
|
||||
| @script@ [[type:script]] ''Optional'' A script that determines zero or more words.<br/>
|
||||
The result should be a list of comma separated words, for example @"x,y,z"@ specifies three words.
|
||||
The words are included in the parent menu, not a sub menu.
|
||||
|
||||
A word can also be given in a short form, in that case only the name is specified.
|
||||
|
||||
@@ -18,3 +21,14 @@ In short form:
|
||||
Is the same as:
|
||||
>word:
|
||||
> name: xyz
|
||||
|
||||
Using a script,
|
||||
>word:
|
||||
> script: "red,green,blue"
|
||||
> line below: true
|
||||
Is the same as
|
||||
>word: blue
|
||||
>word: green
|
||||
>word:
|
||||
> name: red
|
||||
> line below: true
|
||||
|
||||
Reference in New Issue
Block a user