10.07.2015 Views

The microtype package

The microtype package

The microtype package

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

IMPLEMENTATION: Font setup 882414 \MT@warn@rest2415 \let\MT@char\m@ne2416 \let\MT@char\@empty2417 \fi2418 \fi2419 \else2420 \MT@warn@unknown2421 \fi2422 2423 \else<strong>The</strong>re are more possibilities for TEX: It may also be a glyph name (prefixedwith ‘/’). We indicate this to \MT@get@charwd by reversing the sign of \MT@char@.2424 \ifnum\MT@char=47\relax2425 \ifMT@norest \edef\MT@char{U47}%2426 \else2427 \@tempcnta=\XeTeXglyphindex"\expandafter\@gobble\@tempa"\relax2428 \ifnum\@tempcnta=\z@2429 \MT@warn@unknown2430 \let\MT@char\@empty2431 \else2432 \edef\MT@char{\@tempa\space}%2433 \edef\MT@char@{-\the\@tempcnta}%2434 \MT@dinfo@nl{3}{> `\the\MT@toks’ is a glyph name (\the\@tempcnta)}%2435 \fi2436 \fi2437 \else2438 \ifnum\MT@char > \m@ne2439 \ifMT@norestEXOr, it’s a Unicode number, which we mustn’t translate into a glyph number, sincethe latter is font-specific.2440 \@tempcnta=\XeTeXcharglyph\MT@char\relax2441 \ifnum\@tempcnta=\z@2442 \MT@info@missing@char2443 \let\MT@char\@empty2444 \else2445 \MT@dinfo@nl{3}{> (glyph number: \the\@tempcnta,2446 glyph name: \XeTeXglyphname\MT@font\@tempcnta)}%2447 \edef\MT@char{U\MT@char}%2448 \fi2449 \else2450 \MT@warn@rest2451 \let\MT@char\@empty2452 \fi2453 \else2454 \MT@warn@unknown2455 \let\MT@char\@empty2456 \fi2457 \fi2458 \fi2459 2460 }2461 This is the lua function to translate glyph name into slot number. Beginning withv2.2, luaotfload provides this function in an API, which we use if available, but(for now, at least) keep the old code for backward compatibility.2462 2463 if luaotfload and luaotfload.aux and luaotfload.aux.slot _ of _ name then2464 local slot _ of _ name = luaotfload.aux.slot _ of _ name2465 <strong>microtype</strong>.name _ to _ slot = function(name, unsafe)2466 return slot _ of _ name(font.current(), name, unsafe)2467 end

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!