Re: Font ottici

#84520
samiel
Partecipante
    Up
    0
    Down
    ::


    Ci sono!
    `\documentclass[a4paper]{article}
    \usepackage{fontspec}
    \setmainfont[SizeFeatures={%
    {Size={-8.4},Font=* Caption},
    {Size={8.41-13.0},Font=*},
    {Size={13.01-19.9},Font=* Subhead},
    {Size={19.91-},Font=* Display}
    }]{Minion Pro}

    \usepackage{polyglossia}
    \setmainlanguage{italian}
    \begin{document}

    {\fontsize{4}{8}\selectfont Testo piccolo: CAPTION\par}

    {\fontsize{12}{24}\selectfont Testo normale: TEXT\par}

    {\fontsize{16}{32}\selectfont Testo grande: SUBHEAD\par}

    {\fontsize{36}{48}\selectfont Testo grandissimo: DISPLAY\par}

    \end{document}`
    È necessario richiedere a fontspec di usare corpi diversi, ma la cosa funziona.
    Nelal fattispecie, ho usato le misure indicate dalla stessa Adobe per il Minion:
    http://store1.adobe.com/cfusion/store/html/index.cfm?store=OLS-US&event=displayFontPackage&code=1721
    Infatti, guardando le proprietà del pdf generato trovo:
    `samiel@debian:~/guide_latex/xetex$ pdffonts opticalsize.pdf
    name type emb sub uni object ID
    ———————————— —————– — — — ———
    AVZBDA+MinionPro-Capt-Identity-H CID Type 0C yes yes yes 5 0
    WSDHXQ+MinionPro-Subh-Identity-H CID Type 0C yes yes yes 7 0
    RNQPRZ+MinionPro-Disp-Identity-H CID Type 0C yes yes yes 9 0
    `
    Non capisco bene come mai non sia indicato il carattere di default.
    Ne viene forse omessa la menzione in quanto tale?

    Mi lascia tuttavia un po’ perplesso un passo del manuale di fonspec (8.6) che recita:

    OpenType fonts with optical scaling will exist in several discrete sizes, and these will
    be selected by XETEX and LuaTEX automatically determined by the current font size as in
    Example 16, in which we’ve scaled down some large text in order to be able to compare the
    difference for equivalent font sizes.
    The OpticalSize option may be used to specify a different optical size. With OpticalSize
    set to zero, no optical size font substitution is performed, as shown in Example 17.

    perché se non preciso le misure, almeno nel pdf risultante non vedo usati i vari corpi

    PS
    Mi resta il dubbio esposto nel post precedente:
    normale avere due pdftex.map?

    m

    .

    Go to top