Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(388)

Delta Between Two Patch Sets: Documentation/notation/text.itely

Issue 328140043: Add usage of OpenType font feature to the documents
Left Patch Set: Add full feature list and indexed feature Created 6 years, 8 months ago
Right Patch Set: Add notes and identification way Created 6 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Documentation/changes.tely ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 @c -*- coding: utf-8; mode: texinfo; -*- 1 @c -*- coding: utf-8; mode: texinfo; -*-
2 @ignore 2 @ignore
3 Translation of GIT committish: FILL-IN-HEAD-COMMITTISH 3 Translation of GIT committish: FILL-IN-HEAD-COMMITTISH
4 4
5 When revising a translation, copy the HEAD committish of the 5 When revising a translation, copy the HEAD committish of the
6 version that you are working on. For details, see the Contributors' 6 version that you are working on. For details, see the Contributors'
7 Guide, node Updating translation committishes.. 7 Guide, node Updating translation committishes..
8 @end ignore 8 @end ignore
9 9
10 @c \version "2.19.21" 10 @c \version "2.19.21"
(...skipping 1369 matching lines...) Expand 10 before | Expand all | Expand 10 after
1380 1380
1381 When using the glyphs contained in @code{fetaBraces}, the size of the 1381 When using the glyphs contained in @code{fetaBraces}, the size of the
1382 brace is specified by the numerical part of the glyph name, in 1382 brace is specified by the numerical part of the glyph name, in
1383 arbitrary units. Any integer from @code{0} to @code{575} inclusive 1383 arbitrary units. Any integer from @code{0} to @code{575} inclusive
1384 may be specified, @code{0} giving the smallest brace. The optimum 1384 may be specified, @code{0} giving the smallest brace. The optimum
1385 value must be determined by trial and error. These glyphs are all 1385 value must be determined by trial and error. These glyphs are all
1386 left braces; right braces may be obtained by rotation, see 1386 left braces; right braces may be obtained by rotation, see
1387 @ref{Rotating objects}. 1387 @ref{Rotating objects}.
1388 1388
1389 Three families of text fonts are made available: 1389 Three families of text fonts are made available:
1390 @itemize 1390 the @emph{roman} (serif) font,
1391 @item 1391 the @emph{sans} font, and the @emph{typewriter} font.
1392 The @emph{roman} (serif) font, 1392
1393 which defaults to LilyPond Serif (an alias of TeX Gyre Schola). 1393 For @code{svg} backend:
1394 @item 1394 @multitable @columnfractions .15 .30
1395 The @emph{sans} font, 1395 @headitem Family @tab Default font
1396 which defaults to LilyPond Sans Serif (an alias of TeX Gyre Heros). 1396 @item @emph{roman} @tab @code{serif}
1397 @item 1397 @item @emph{sans} @tab @code{sans-serif}
1398 The @emph{typewriter} (monospaced) font, 1398 @item @emph{typewriter} @tab @code{monospace}
1399 which defaults to LilyPond Monospace (an alias of TeX Gyre Cursor). 1399 @end multitable
1400 @end itemize 1400
1401 @code{serif}, @code{sans-serif}, and @code{monospace} are
1402 @code{generic-family} in SVG and CSS specifications.
1403
1404 For other backends:
1405 @multitable @columnfractions .15 .30 .55
1406 @headitem Family @tab Default font (alias) @tab Alias definition lists
1407 @item @emph{roman}
1408 @tab @code{LilyPond Serif}
1409 @tab
1410 TeX Gyre Schola,
1411 C059, Century SchoolBook URW, Century Schoolbook L,
1412 DejaVu Serif,
1413 ..., serif
1414 @item @emph{sans}
1415 @tab @code{LilyPond Sans Serif}
1416 @tab
1417 TeX Gyre Heros,
1418 Nimbus Sans, Nimbus Sans L, DejaVu Sans,
1419 ..., sans-serif
1420 @item @emph{typewriter}
1421 @tab @code{LilyPond Monospace}
1422 @tab
1423 TeX Gyre Cursor,
1424 Nimbus Mono PS, Nimbus Mono, Nimbus Mono L,
1425 DejaVu Sans Mono,
1426 ..., monospace
1427 @end multitable
1428
1429 @code{LilyPond Serif}, @code{LilyPond Sans Serif},
1430 and @code{LilyPond Monospace} are font aliases defined
1431 in the LilyPond dedicated FontConfig configuration file
1432 @code{00-lilypond-fonts.conf}.
1433 Where a character dosen't exist in the first font listed,
1434 the next font listed will be used instead for that character.
1435 For details of alias definitions, please see
1436 to @code{00-lilypond-fonts.conf} under the installed directory.
1401 1437
1402 Each family may include different shapes and series. The following 1438 Each family may include different shapes and series. The following
1403 example demonstrates the ability to select alternate families, shapes, 1439 example demonstrates the ability to select alternate families, shapes,
1404 series and sizes. The value supplied to @code{font-size} is the 1440 series and sizes. The value supplied to @code{font-size} is the
1405 required change from the default size. 1441 required change from the default size.
1406 1442
1407 @lilypond[quote,verbatim,fragment] 1443 @lilypond[quote,verbatim,fragment]
1408 \override Score.RehearsalMark.font-family = #'typewriter 1444 \override Score.RehearsalMark.font-family = #'typewriter
1409 \mark \markup "Ouverture" 1445 \mark \markup "Ouverture"
1410 \override Voice.TextScript.font-shape = #'italic 1446 \override Voice.TextScript.font-shape = #'italic
(...skipping 25 matching lines...) Expand all
1436 } 1472 }
1437 \override #'(font-family . sans) 1473 \override #'(font-family . sans)
1438 Creta 1474 Creta
1439 } 1475 }
1440 } 1476 }
1441 } 1477 }
1442 @end lilypond 1478 @end lilypond
1443 1479
1444 @noindent 1480 @noindent
1445 When using OpenType fonts, font features can be used. 1481 When using OpenType fonts, font features can be used.
1482 OpenType font scripts and languages can not be specified.
1446 Note: Not all OpenType fonts have all functions. 1483 Note: Not all OpenType fonts have all functions.
1484 If you request a feature that doesn't exist in the chosen font,
1485 then the feature is simply ignored.
1447 1486
1448 @lilypond[quote,verbatim] 1487 @lilypond[quote,verbatim]
1449 % True small caps 1488 % True small caps
1450 \markup { Normal Style: Hello HELLO } 1489 \markup { Normal Style: Hello HELLO }
1451 \markup { \caps { Small Caps: Hello } } 1490 \markup { \caps { Small Caps: Hello } }
1452 \markup { \override #'(font-features . ("smcp")) 1491 \markup { \override #'(font-features . ("smcp"))
1453 { True Small Caps: Hello } } 1492 { True Small Caps: Hello } }
1454 1493
1455 % Number styles 1494 % Number styles
1456 \markup { Normal Number Style: 0123456789 } 1495 \markup { Normal Number Style: 0123456789 }
1457 \markup { \override #'(font-features . ("onum")) 1496 \markup { \override #'(font-features . ("onum"))
1458 { Old Number Style: 0123456789 } } 1497 { Old Number Style: 0123456789 } }
1459 1498
1460 % Stylistic Alternates 1499 % Stylistic Alternates
1461 \markup { \override #'(font-features . ("salt 0")) 1500 \markup { \override #'(font-features . ("salt 0"))
1462 { Stylistic Alternates 0: εφπρθ } } 1501 { Stylistic Alternates 0: εφπρθ } }
1463 \markup { \override #'(font-features . ("salt 1")) 1502 \markup { \override #'(font-features . ("salt 1"))
1464 { Stylistic Alternates 1: εφπρθ } } 1503 { Stylistic Alternates 1: εφπρθ } }
1465 1504
1466 % Multiple features 1505 % Multiple features
1467 \markup { \override #'(font-features . ("onum" "smcp" "salt 1")) 1506 \markup { \override #'(font-features . ("onum" "smcp" "salt 1"))
1468 { Multiple features: Hello 0123456789 εφπρθ } } 1507 { Multiple features: Hello 0123456789 εφπρθ } }
1469 @end lilypond 1508 @end lilypond
1470 1509
1471 @noindent For the full OpenType font feature list please see: 1510 @noindent For the full OpenType font feature list please see:
1472 @uref{https://www.microsoft.com/typography/otspec/featurelist.htm} 1511 @uref{https://www.microsoft.com/typography/otspec/featurelist.htm}
1512
1513 @noindent For identifying features of OpenType fonts please see:
1514 @uref{http://lists.gnu.org/archive/html/lilypond-devel/2017-08/msg00004.html}
1473 1515
1474 Although it is easy to switch between preconfigured fonts, it is also 1516 Although it is easy to switch between preconfigured fonts, it is also
1475 possible to use other fonts, as explained in the following sections: 1517 possible to use other fonts, as explained in the following sections:
1476 @ref{Single entry fonts} and @ref{Entire document fonts}. 1518 @ref{Single entry fonts} and @ref{Entire document fonts}.
1477 1519
1478 @seealso 1520 @seealso
1479 Notation Reference: 1521 Notation Reference:
1480 @ref{The Emmentaler font}, 1522 @ref{The Emmentaler font},
1481 @ref{Music notation inside markup}, 1523 @ref{Music notation inside markup},
1482 @ref{Rotating objects}, 1524 @ref{Rotating objects},
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
1570 @c we don't do Helvetica / Courier, since GS incorrectly loads 1612 @c we don't do Helvetica / Courier, since GS incorrectly loads
1571 @c Apple TTF fonts 1613 @c Apple TTF fonts
1572 1614
1573 @seealso 1615 @seealso
1574 Notation Reference: 1616 Notation Reference:
1575 @ref{Fonts explained}, 1617 @ref{Fonts explained},
1576 @ref{Single entry fonts}, 1618 @ref{Single entry fonts},
1577 @ref{Selecting font and font size}, 1619 @ref{Selecting font and font size},
1578 @ref{Font}. 1620 @ref{Font}.
1579 1621
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b