Il tormentone dei font: type1ec, lmodern e microtype

  • Creatore
    Topic
  • #10104
    lorenzo.pantieri
    Partecipante
      Up
      0
      Down
      ::


      Ciao a tutti, quale è secondo voi la soluzione “migliore” per la resa dei caratteri (nel pdf finale ottenuto con pdfLaTeX) fra
      `
      \usepackage[T1]{fontenc}
      \usepackage{lmodern}
      %\usepackage{type1ec}
      \usepackage{microtype}
      `

      `
      \usepackage[T1]{fontenc}
      %\usepackage{lmodern}
      \usepackage{type1ec}
      \usepackage{microtype}
      `

      `
      \usepackage[T1]{fontenc}
      %\usepackage{lmodern}
      \usepackage{type1ec}
      %\usepackage{microtype}
      `
      … eccetera? Basta giocare su un documento minimale come questo:
      `\documentclass[a4paper,11pt]{article}

      \usepackage[T1]{fontenc}
      %\usepackage{type1ec}
      \usepackage{lmodern}
      \usepackage{microtype}
      \usepackage{layaureo}
      \usepackage{lipsum}

      \begin{document}

      \lipsum

      \end{document}
      `
      per ottenere risultati diversi (nell’aspetto e nella distribuzione dei caratteri sulla pagina) a seconda di quale pacchetto -fra type1ec, lmodern e microtype– sia selezionato.

      Grazie,
      L.

    Visualizzazione 5 filoni di risposte
    • Autore
      Risposte
      • #10105
        Up
        0
        Down
        ::


        `\usepackage[T1]{fontenc}
        \usepackage{microtype} `

        Perché vuoi caricare di un pacchetto per il font? Il computer modern che ottieni di default mi sembra soddisfacente.

      • #10106
        lorenzo.pantieri
        Partecipante
          Up
          0
          Down
          ::

          Perché vuoi caricare di un pacchetto per il font? Il computer modern che ottieni di default mi sembra soddisfacente.

          Il primo motivo che mi viene in mente è la compatibilità con certi pacchetti, come lettrine, che per funzionare bene richiede un preambolo del tipo:
          `\usepackage[T1]{fontenc}
          \usepackage{lmodern}
          \usepackage{lettrine}`
          o anche
          `\usepackage[T1]{fontenc}
          \usepackage{type1ec}
          \usepackage{lettrine}`
          Un altro motivo può essere rappresentato dalla mia ignoranza in materia, che mi lascia pensare che un pacchetto ad hoc migliori la (peraltro già ottima) situazione di default.

          Ciao,
          L.

        • #10107
          lorenzo.pantieri
          Partecipante
            Up
            0
            Down
            ::


            Aggiungo questo estratto dalla documentazione di lettrine:

            Important notice: the sizing works fine with fully scalable fonts (like the standard PostScript fonts), but might not work well with CM/EC fonts which have two limitations: only a limited number of sizes is available by default (precise adjustments are impossible), and the largest size (25pt or 35pt) is often too small. The CM fonts are now available in PostScript type1 format for free, to make them fully scalable, it is mandatory to add \usepackage{type1cm} in the preamble of your document. The EC fonts are also available in type1 format for free (hey are called cm-super), and adding \usepackage{type1ec} in the preamble will make them fully scalable too. So, if you want lettrine.sty to work properly with CM or EC fonts, you will need PostScript versions of these fonts and one of the packages type1cm.sty or type1ec.sty.

            The newly released LM fonts, which should replace both CM and EC fonts sooner or later, are fully scalable, so, if you have them installed, you should use them instead of CM or EC fonts. \usepackage{lmodern} is the command to switch them on (add \usepackage[T1]{fontenc} when composing in one of the western languages other than English in order to get proper hyphenation).

            Il passo in cui si afferma che i font latin modern dovrebbero presto o tardi sostituire sia i CM sia gli EC mi sembra notevole, per la nostra discussione.

            Ciao,
            L.

          • #10108
            Up
            0
            Down
            ::

            Aggiungo questo estratto dalla documentazione di lettrine:

            Important notice: the sizing works fine with fully scalable fonts (like the standard PostScript fonts), but might not work well with CM/EC fonts which have two limitations: only a limited number of sizes is available by default (precise adjustments are impossible), and the largest size (25pt or 35pt) is often too small. The CM fonts are now available in PostScript type1 format for free, to make them fully scalable, it is mandatory to add \usepackage{type1cm} in the preamble of your document. The EC fonts are also available in type1 format for free (hey are called cm-super), and adding \usepackage{type1ec} in the preamble will make them fully scalable too. So, if you want lettrine.sty to work properly with CM or EC fonts, you will need PostScript versions of these fonts and one of the packages type1cm.sty or type1ec.sty.

            The newly released LM fonts, which should replace both CM and EC fonts sooner or later, are fully scalable, so, if you have them installed, you should use them instead of CM or EC fonts. \usepackage{lmodern} is the command to switch them on (add \usepackage[T1]{fontenc} when composing in one of the western languages other than English in order to get proper hyphenation).

            Il passo in cui si afferma che i font latin modern dovrebbero presto o tardi sostituire sia i CM sia gli EC mi sembra notevole, per la nostra discussione.

            I font Latin Modern hanno ancora alcuni difetti, a mio parere. Non che gli EC siano perfetti, ma hanno il pregio di avere anche il disegno per corpi molto grandi (25 e 30 punti), mentre i LM arrivano solo fino a 17.

            La cosa potrebbe non sembrare molto rilevante, ma prova con il seguente documento:
            `\documentclass[a4paper]{article}
            \usepackage[T1]{fontenc}
            \usepackage{lmodern}
            \begin{document}
            \Huge ABC\sffamily ABC
            \end{document}`
            Vedrai la chiara differenza quando carichi lmodern. Il sans serif con lmodern è intollerabilmente pesante. Ancora peggio se usi il sans serif nero.

            Sul fatto che i LM soppianteranno gli EC non so dire. Di sicuro c’è una cosa che andrebbe modificata: in entrambi il simbolo dell’euro fa orrore.

            Ciao
            Enrico

          • #10109
            lorenzo.pantieri
            Partecipante
              Up
              0
              Down
              ::

              I font Latin Modern hanno ancora alcuni difetti, a mio parere. Non che gli EC siano perfetti, ma hanno il pregio di avere anche il disegno per corpi molto grandi (25 e 30 punti), mentre i LM arrivano solo fino a 17.

              Ciao Enrico, ti ringrazio della spiegazione, come sempre risolutiva. D’ora in poi, per tutti i miei documenti userò il seguente preambolo:
              `\usepackage[T1]{fontenc}
              \usepackage{type1ec}
              \usepackage{microtype}`

              Sul fatto che i LM soppianteranno gli EC non so dire. Di sicuro c’è una cosa che andrebbe modificata: in entrambi il simbolo dell’euro fa orrore.

              IMHO nemmeno il simbolo di “chiocciola”, @, è un gran che…

              Ancora grazie,
              L.

            • #10110
              Up
              0
              Down
              ::

              IMHO nemmeno il simbolo di “chiocciola”, @, è un gran che…

              Vero, ma “AT” è un carattere di non grande uso; sia in CMSS che in CMTT la forma è un compromesso per adeguarla all’ampiezza degli altri caratteri. Computer Modern Typewriter è uno dei migliori caratteri a spaziatura uniforme, la forma del simbolo “AT” è almeno accettabile. In Courier è semplicemente disastrosa.

              Un po’ meglio va in American Typewriter che però è troppo pesante nel resto; è buona in Andale Mono, che però è troppo stretto. Lucida Typewriter è meglio, credo, ma si combina poco con altri caratteri. Che ci si può fare?

              Ciao
              Enrico

          Visualizzazione 5 filoni di risposte
          • Devi essere connesso per rispondere a questo topic.

          Go to top