thesourcerer8 / altium2kicad

Altium to KiCad converter for PCB and schematics
https://www2.futureware.at/KiCad/
GNU General Public License v2.0
837 stars 153 forks source link

Multi-line strings are not correctly imported #68

Open cdwijs opened 5 years ago

cdwijs commented 5 years ago

I've imported a file with a 2 line string on the silkscreen. At the end of the first line an extra ? is imported. In Altium the string looks like this: corner radius In Kicad the string looks like this: corner? radius See the file "Tests\padnames.*" from my pull request: https://github.com/thesourcerer8/altium2kicad/pull/67

Cheers, Cedric

cdwijs commented 5 years ago

In the Kicad file this is written: (gr_text "rounded \nrectangular" (at 29.08300 -37.59200 0) (layer F.SilkS) (effects (font (size 1.524 1.524) (thickness 0.1)) (justify left)) ) It should have been like this (rounded\nrectangular on one line) (gr_text "rounded\nrectangular" (at 29.08300 -37.59200 0) (layer F.SilkS) (effects (font (size 1.524 1.524) (thickness 0.1)) (justify left)) )

cdwijs commented 5 years ago

The code that does this conversion starts at line 3096 (print "Texts6...\n";) at line 3190 the text is written to the Kicad file