On 2012-02-02, John O'Gorman wrote:
> On 02/02/12 21:47, Guenter Milde wrote:
>> On 2012-02-02, John O'Gorman wrote:


>>> How can I set LyX to use OT1 encoding (or is that undesirable)?
>> You can set the font encoding (called "latex encoding" by LyX) in the
>> settings:

>>  1.6.x only allows global setting under Utils>Preferences
>>  2.x   also allows per-document configuration

>> Generally, T1 encoding is preferable because it also supports accented
>> characters (like ü) which in OT1 encoding is built of 2 parts so that
>> copy/paste and search in a PDF (or PS) file do not work as expected.

>> Mark that with the use of the T1 font encoding, the Computer Modern fonts
>> are replaced by the (bitmap!) European Modern fonts unless you select a
>> different font (e.g. Latin Modern) for your document.

> Thank you! That did the trick.
> If I set the default font to Latin Modern will that overcome all the
> deficiencies of OT1 (v T1)?

LaTeX' font substitution mechanism always selects a font in the matching
font encoding, if the specified font is not available in this encoding, a
different one is chosen. Specifying Latin Modern ensures that a scalable
CM-lookalike is used with T1 font encoding. Alternatively, you can
install the CM-Super fonts, which usually replace EC as T1 substitution
font for CM.

Selecting Latin Modern with the "lmodern" package also sets the font
encoding to T1 (but "LaTeX font encoding" configured in LyX overwrites this).

If you want both, the advantages of T1 and Hieroglyphs, you can switch the
encoding in the document with ERT. 

In LyX 2.x, select Document>Settings>Fonts>Encoding>Custom and write OT1,T1
(this should result in 
  \usepackage[OT1,T1]{fontenc}
 in the latex preamble) to prepare the use of both encodings.

In the text, switch the font encoding with

  \fontencoding{OT1}\selectfont
  the Hieroglyphs
  \fontencoding{T1}\selectfont
  
Alternatively, you can consider patching the package to define the commands
in T1, too.
  
Günter

Reply via email to