Skip to content

"default_text_size" Option for GDS writer #2145

@klayoutmatthias

Description

@klayoutmatthias

Apparently, sometime a text size of zero is used to create "hidden" texts.

In KLayout, a text size of zero means "not set", so it is not possible to represent a text size of zero. This is not straightforward to change as it would change the API in a non-backward compatible way.

Hence, the idea is to provide a GDS writer option ("default_text_size"), setting the text size to some value if not set. This allows using "default_text_size=0" to pass zero-size texts from reader to the writer. Caveat: texts without text size (i.e. no MAG record) are then given this size as well. I believe however that GDS generators would usually either generate MAG records for all texts or for no text at all (e.g. when the texts are translated from OASIS). In the latter case, this option would allow to give such texts a specific size.

OASIS does not need such an option as OASIS does not support text sizes at all.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions