You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds support for any font as rendering resource (#274)
* Added initial forwarding of font sizes to worker
* Added font loading check mechanism to workflow to ensure it is loaded before rendering
* Integrated dynamic font size generation into already existing workflows
* Updated samples and docs
* Some cleanup work
<tr><td>staffLineColor</td> <td>Color</td> <td>The lines for all staves</td> <td>rgb(165,165,165)</td></tr>
32
32
<tr><td>barSeparatorColor</td> <td>Color</td> <td>The lines for bar separators and repeat indicators</td> <td>rgb(34,34,17)</td></tr>
@@ -44,7 +44,7 @@ Order: 10
44
44
<h3class="panel-title">Usage of different fonts</h3>
45
45
</div>
46
46
<divclass="panel-body">
47
-
The usage of other fonts can result in alignment or layouting issues and in a slighly worse performance. If such problems are detected, please inform us on <ahref="https://github.com/CoderLine/alphaTab/issues/new/choose"target="_blank">GitHub</a>. The format for fonts is similar to the CSS shorthand font declarations but with some limitations: <code>Size Family Style</code>. No relative font sizes are supported and every size beside px will be converted to px. For styles <code>italic</code> and <code>bold</code> are supported.
47
+
The usage of other fonts can result in alignment or layouting issues and in a slighly worse performance. If such problems are detected, please inform us on <ahref="https://github.com/CoderLine/alphaTab/issues/new/choose"target="_blank">GitHub</a>. The format for fonts is similar to the CSS shorthand font declarations but with some limitations: <code>Style Size Family</code>. No relative font sizes are supported and every size beside px will be converted to px. For styles <code>italic</code> and <code>bold</code> are supported.
Copy file name to clipboardExpand all lines: Documentation/input/reference/property/renderingresources.cshtml
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -122,9 +122,10 @@ Following resources exist for adjusting the style.
122
122
123
123
<h3>Fonts</h3>
124
124
<p>
125
-
For the .net platform any installed font on the system can be used. For JavaScript until <ahref="https://github.com/CoderLine/alphaTab/issues/266"target="_blank">this feature</a> is implemented the 2 fonts "Arial" and "Georgia" are officially supported. Due to the nature of Web Workers, no font metrics are available which needs a custom solution for measuring texts.
126
-
<br />
127
-
On .net simply construct the <code>Font</code> object to configure your desired fonts. For JavaScript you can use any CSS font property compliant string. Relative font sizes with percentual values are not supported.
125
+
For the .net platform any installed font on the system can be used. Simply construct the <code>Font</code> object to configure your desired fonts.
126
+
</p>
127
+
<p>
128
+
For the JavaScript platform any font that might be installed on the client machines can be used. Any additional fonts can be added via WebFonts. The rendering of the score will be delayed until it is detected that the font was loaded. Simply use any CSS font property compliant string as configuration. Relative font sizes with percentual values are not supported, remaining values will be considered if supported.
0 commit comments