Diferenças

Aqui você vê as diferenças entre duas revisões dessa página.

Link para esta página de comparações

Ambos lados da revisão anterior Revisão anterior
software:about_font_encoding [2026/11/03 16:07] – mazierosoftware:about_font_encoding [2026/11/04 08:44] (atual) – maziero
Linha 1: Linha 1:
 ===== About Font Encoding ===== ===== About Font Encoding =====
  
-In order to improve the final PDF text quality, it is **recommended to use LaTeX T1 font encoding** (LaTeX uses T0 font encoding by default). The difference between T0 and T1 font encodings can be understood by observing the following PDF files:+In order to improve the final PDF text quality, it is **recommended to use LaTeX T1 font encoding** (LaTeX uses T0 font encoding by default). T1 font encoding preserves accented characters when converting the PDF to raw text; this behavior is important when the PDF file is indexed by search engines, or when copying its contents to other files. Also, LaTeX does not correctly hyphenate words with accented chars when using T0 encoding. 
 + 
 +The difference between T0 and T1 font encodings can be better understood by observing the following PDF files:
  
   * {{:software:latex-t0-fontenc.pdf|PDF file compiled with T0 font encoding}}   * {{:software:latex-t0-fontenc.pdf|PDF file compiled with T0 font encoding}}
Linha 7: Linha 9:
  
 Although they are visually identical, **there are some differences**. To see them, copy & paste the contents of each PDF file on an ASCII text editor (vi, notepad, ...), and see how accented characters are copied. Although they are visually identical, **there are some differences**. To see them, copy & paste the contents of each PDF file on an ASCII text editor (vi, notepad, ...), and see how accented characters are copied.
- 
-T1 font encoding preserves accented characters when converting the PDF to raw text; this behavior is important when the PDF file is indexed by search engines, or when copying its contents to other files. Also, LaTeX does not correctly hyphenate words with accented chars when using T0 encoding. 
  
 To generate PDFs using the T1 font encoding, these lines should be in the preamble of your ''.tex'' source file: To generate PDFs using the T1 font encoding, these lines should be in the preamble of your ''.tex'' source file:
  • software/about_font_encoding.1793732870.txt.gz
  • Última modificação: 2026/11/03 16:07
  • por maziero