font not typing the text correctly

I am trying to label text in silkscreen as चालू बंद. I can see it like this in even property window text box. However in the pcb layout it is appearing as चल बद. The font used is Nirmal UI. The text is generated in google transliterate in Hindi language.

Please guide to ensure that I am able to see the text the way it is supposed to appear.

I’m not too familiar with KiCad font rendering, but it uses FreeType 2 Overview which “doesn’t provide APIs to perform higher-level features like text layout”. This means that it’s quite possible that there are font a script features which KiCad doesn’t render correctly. The features which are missing in your example look like something which the developer who implemented KiCad rendering didn’t necessarily take into account (at least I can say most of us here in Finland don’t read or write Hindi… :smiley: ). It’s also possible that different font files implement the same features in different ways, and you could try another font.

I suggest you file an issue in the KiCad gitlab issue database.

This is how I did it using Inkscape but, could use many other programs to do it…
• Copied your Posted Text
• Pasted it in Inkscape (the Text-Tool icon)
• Select it, Path>Stroke-to-Path
• Select it, Export SVG
• Load SVG into Kicad as shown in Video…

1 Like

To me those sentences look pretty much the same. But a translation attempt gives “Start Stop” for the first, and “Go Bad” for the second.

The number of characters also seems to be different:

You can try to use another font, but it’s strange that it shows all right in other locations. (Does it only work in text entry fields, or does it also work inside a text box on the schematic?

If you are sure that this font works on the schematic, and not on the PCB. then it may be a bug in KiCad.

And using some other program and then export it into KiCad as graphics (as BlackCoffee mentioned) will also work, and also remove font dependencies (and your graphics will not change if for example the font is missing).

Thanks for the guidance. I can definitely use workaround to get the pcb fabricated. However, given that the textbox in Text Properties window is rendering properly whereas the layout editor is skipping the parts of the text, looks like a bug to me that can be fixed.

Please report this using Help → Report Bug in KiCad menu

Thanks dsa-t. I have submitted the bug report. Non english language font rendering (#22402) · Issues · KiCad / KiCad Source Code / kicad · GitLab