|
240 | 240 | <name character> ::= {\sc all_characters} - ( `(' | `/' | `:' ) ;
|
241 | 241 | \endsyntaxfloat
|
242 | 242 |
|
| 243 | +%% Below guarded space gets borked in index; why‽ |
243 | 244 | \beginsubsection{Prefix -- the \identifier{luaotfload}{ }Way}
|
244 | 245 |
|
245 | 246 | In \identifier{luaotfload}, the canonical syntax for font requests
|
|
335 | 336 |
|
336 | 337 | \endsubsection
|
337 | 338 |
|
338 |
| -\beginsubsection {Compatibility Layer} |
339 |
| - |
340 |
| -In addition to the regular prefixed requests, \identifier{luaotfload} |
341 |
| -accepts loading fonts the \XETEX way. |
| 339 | +\beginsubsection {Bracketed Lookups} |
| 340 | +\label{sec:conf} |
| 341 | +Bracketed lookups allow for arbitrary character content to be used in a |
| 342 | +definition. |
342 | 343 | %
|
343 |
| -There are again two modes: bracketed and unbracketed. |
344 |
| -A bracketed request looks as follows. |
| 344 | +A simple bracketed request looks follows the scheme |
345 | 345 |
|
346 | 346 | \beginnarrower
|
347 | 347 | \nonproportional{\string\font\string\fontname\space = [}%
|
|
350 | 350 | \endnarrower
|
351 | 351 |
|
352 | 352 | \noindent
|
353 |
| -Inside the square brackets, every character except for a closing |
354 |
| -bracket is permitted, allowing for specifying paths to a font file. |
| 353 | +Inside the square brackets, every character except for a closing bracket is |
| 354 | +permitted, allowing for arbitrary paths to a font file -- including Windows |
| 355 | +style paths with UNC or drive letter prepended -- to be specified. |
355 | 356 | %
|
| 357 | +The \identifier{Luaotfload} syntax differs from \XETEX in that the subfont |
| 358 | +selector goes \emphasis{after} the closing bracket: |
| 359 | + |
| 360 | +\beginnarrower |
| 361 | + \nonproportional{\string\font\string\fontname\space = [}% |
| 362 | + \meta{/path/to/file}% |
| 363 | + \nonproportional{]} |
| 364 | + \nonproportional{(}n\nonproportional{)} |
| 365 | +\endnarrower |
| 366 | + |
356 | 367 | Naturally, path-less file names are equally valid and processed the
|
357 | 368 | same way as an ordinary \inlinecode {file:} lookup.
|
358 | 369 |
|
| 370 | +\beginsubsection {Compatibility} |
| 371 | + |
| 372 | +In addition to the regular prefixed requests, \identifier{luaotfload} |
| 373 | +accepts loading fonts the \XETEX way. |
| 374 | +% |
| 375 | +There are again two modes: bracketed and unbracketed. |
| 376 | +For the bracketed variety, see above, \ref{sec:conf}. |
| 377 | + |
| 378 | +Unbracketed (or, for lack of a better word: \emphasis{anonymous}) |
| 379 | +font requests resemble the conventional \TEX syntax. |
| 380 | + |
359 | 381 | \beginnarrower
|
360 | 382 | \nonproportional{\string\font\string\fontname\space= }%
|
361 | 383 | \meta{font name}
|
362 | 384 | \dots
|
363 | 385 | \endnarrower
|
| 386 | +\endsubsection |
364 | 387 |
|
365 |
| -Unbracketed (or, for lack of a better word: \emphasis{anonymous}) |
366 |
| -font requests resemble the conventional \TEX syntax. |
367 |
| -% |
368 | 388 | However, they have a broader spectrum of possible interpretations:
|
369 | 389 | before anything else, \identifier{luaotfload} attempts to load a
|
370 | 390 | traditional \TEX Font Metric (\abbrev{tfm} or \abbrev{ofm}).
|
|
443 | 463 | \font \cambriamath = "file:cambria.ttc(1)" at 10pt
|
444 | 464 | \endlisting
|
445 | 465 |
|
| 466 | +and likewise, requesting subfont inside a TTC container by path: |
| 467 | + |
| 468 | +\beginlisting |
| 469 | + \font \asanamain = "[/home/typesetter/.fonts/math/asana.ttc](0):mode=node;+tlig" at 10pt |
| 470 | + \font \asanamath = "[/home/typesetter/.fonts/math/asana.ttc](1):mode=base" at 10pt |
| 471 | +\endlisting |
| 472 | + |
446 | 473 | \endsubsubsection
|
447 | 474 |
|
448 | 475 | \beginsubsubsection{Loading by Font Name}
|
|
0 commit comments