How to use different fonts in pcell

Dear All,

Thank you to everyone who works for Klayout. I am a basic user and my question may be simple for many users to answer. When I convert a text into a pcell, it only uses non-Manhattan fonts. The difficulty with the Non-Manhattan font is that it only supports capital characters. Small letters cannot be typed on the mask. Could someone kindly explain how to use different fonts to type capital and small letters on the mask.

Thanks in advance

Krish

Comments

  • Hi @Krishp,

    It's quite unusual (at least in my daily work) to have lower case letters on the masks.

    But if you need them, you can install custom fonts as described here: https://www.klayout.de/doc-qt5/about/basic_lib.html#h2-44.

    In the text generator, each character corresponds to a cell in the font file. The cell is called like the character or named like the 3-digit decimal code of the character (e.g. "048" for the digit "0"). The generator will check if there is a cell called lowercase "a" (GDS is case sensitive, so there can be "A" and "a") or "065" for the corresponding ASCII code. If that is the case, it will allow lower case characters and not translate all text to upper case ones.

    Matthias

Sign In or Register to comment.