DXF exports text height of zero for blank height values

Open Beginner friendly
#2,412 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
62/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
cpp
Domain
data

Research direction

Find the DXF text exporter and trace how it handles blank text heights; the issue does not name a file or test. Start by searching the export code for where text height is written, then check for existing DXF export tests. Done when blank heights export as a non-zero value (the reporter suggests 10) and the output displays correctly in DXF viewers.

Written by the indexing model from the issue text.

Description

k-layout suggests for the text height to be left blank to be interpreted as 'default'.
When exporting text to a DXF file, the software writes the blank text height as 0.
DXF viewers do not know how to properly display zero height text, so they display a containing rectangle.
Suggest that the DXF exporter substitute a non-zero value for blank text height. The value 10 seems to be about right.

Dominant language
C++
Stars
1.2k
Forks
305
Avg merge
3d 2h
Merged PRs (30d)
11

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from KLayout/klayout

All issues in KLayout/klayout

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.