FB II Compiler

PG PRO

Debugging

Memory

System

Mathematics

Resources

Disk I/O

Windows

Controls

Menus

Mouse

Keyboard

Text

Fonts

Drawing

Sound

Clipboard

Printing

Communication

ASM

Made with FB

TEXT

Avoid truncated characters with italic style


I've found that the same thing happens to me if my current copy mode is set to _srcCopy at the time I open the edit field. The problem goes away if I set the copy mode to _srcOr before opening the field.

I think the problem happens because italic letters are drawn in a "parallelogram" rather than a rectangle. Part of the parallelogram is intersecting with the rectangle in which the following (non-italic) character is drawn. If that non-italic character is drawn in _srcCopy mode, then all the background pixels in its rectangle are "whited-out," including the part that intersects with the italic char's parallelogram.

Bill wrote:
<< All I can figure is that the styl resource doesn't include the copy mode, so the copy mode carries through. >>

That in fact seems to be the case. When this question first came up, I took a look at what information TextEdit stores in style records. It stores Font ID ("family" number), size, character style and color. But not copy mode.

Rick