Support for Hebrew fonts (.shx)
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Support for Hebrew fonts (.shx)
Hi,
My OS: Linux s-Aspire-7750 5.4.0-77-generic #86~18.04.1-Ubuntu x86_64 GNU/Linux
I have a drawing that contains Hebrew text. I added Hebrew .shx fonts to the 'fonts' folder (as I would in Autocad) so that QCAD would display Hebrew characters. Even so (after restart) QCAD displays only the equivalent (and meaningless) Latin characters. See encircled text:
It seems also (according to the dropdown font menu) that QCAD isn't even aware of the newly added fonts.
Is there a known solution for this?
My OS: Linux s-Aspire-7750 5.4.0-77-generic #86~18.04.1-Ubuntu x86_64 GNU/Linux
I have a drawing that contains Hebrew text. I added Hebrew .shx fonts to the 'fonts' folder (as I would in Autocad) so that QCAD would display Hebrew characters. Even so (after restart) QCAD displays only the equivalent (and meaningless) Latin characters. See encircled text:
It seems also (according to the dropdown font menu) that QCAD isn't even aware of the newly added fonts.
Is there a known solution for this?
- Attachments
-
- GDNAA-8- BNEEM.dwg
- (102.28 KiB) Downloaded 430 times
Re: Support for Hebrew fonts (.shx)
Hi,
I think that QCAD works with TTF fonts.
And then again the text doesn't rely on Hebrew.shx
All text based entities rely on "Miriam CLM".
That can be found here: https://fontinfo.opensuse.org/fonts/MiriamCLMBook.html
Linked to a basic collection of Hebrew fonts for X Windows is found here: http://culmus.sourceforge.net/
Regards,
CVH
I think that QCAD works with TTF fonts.
And then again the text doesn't rely on Hebrew.shx
All text based entities rely on "Miriam CLM".
That can be found here: https://fontinfo.opensuse.org/fonts/MiriamCLMBook.html
Linked to a basic collection of Hebrew fonts for X Windows is found here: http://culmus.sourceforge.net/
Regards,
CVH
Re: Support for Hebrew fonts (.shx)
The TTF fonts are already detected by QCAD and the selected font is Miriam CLM. For the text to display properly I need miriam.shx loaded, something which isn't happening even after I've copied about 100 .shx font files into the folder.
Re: Support for Hebrew fonts (.shx)
QCAD does not support SHX fonts.
You might want to substitute those fonts with a TTF font (automatically with Edit > Substitute Fonts).
You might want to substitute those fonts with a TTF font (automatically with Edit > Substitute Fonts).
Re: Support for Hebrew fonts (.shx)
Nope. Doesn't work. The text is still displayed In Latin characters. On Autocad (and Draftsight for that matter) I would just copy *.shx font files into the 'fonts' folder, restart, and text displays automatically. QCAD in this case doesn't even detect the existence of these fonts even after I've copied them into the 'fonts' folder under ~/user/opt/QCAD/fonts (fonts are also installed system-wide in /usr/share/fonts)
Re: Support for Hebrew fonts (.shx)
I think I'm not being clear: I have Miriam CLM fonts installed already system wide. Additionally, I have Miriam CLM fonts installed in the QCAD 'fonts' folder:
Miriam CLM is designated as substitute font as well:
Still text is in meaningless Latin characters (notice how MIriam CLM is the designated font):
What am I not doing right?
Miriam CLM is designated as substitute font as well:
Still text is in meaningless Latin characters (notice how MIriam CLM is the designated font):
What am I not doing right?
Re: Support for Hebrew fonts (.shx)
Ok, got it
What you can do is edit one text entity its font.
If 'Miriam CLM' is the last font in the list then QCAD did not made the match.
You can also see that the TTF file is called 'MiriamCLM-Book' or 'Bold' or 'MiriamMonoCLM ...'
What I also don't understand is that QCAD found 4 fonts and proposes to subtitute it with 'Miriam'.
Regards,
CVH
Re: Support for Hebrew fonts (.shx)
I've the feeling (feeling! no proof!) that the font Miriam CLM is not a 100% match. And I think that the Miriam CLM fonts which we now find in the drawing is already a font substitution. Correct? If I'm right then we have no idea which font was proper working for this specific text line ...
Nevertheless - the font contains Arabic and Hebrew glyphs ...
... what means an outcome like this Hebrew written right to left ...
.... or Arabic written left to right ...
is possible with the same font depending on which input style the designer of the drawing has used.
If I would be in your situation I would try to get my hands on the original used fonts ...
Nevertheless - the font contains Arabic and Hebrew glyphs ...
... what means an outcome like this Hebrew written right to left ...
.... or Arabic written left to right ...
is possible with the same font depending on which input style the designer of the drawing has used.
If I would be in your situation I would try to get my hands on the original used fonts ...
CVH wrote: ↑Mon Jul 05, 2021 9:54 pmOk, got it
What you can do is edit one text entity its font.
If 'Miriam CLM' is the last font in the list then QCAD did not made the match.
You can also see that the TTF file is called 'MiriamCLM-Book' or 'Bold' or 'MiriamMonoCLM ...'
What I also don't understand is that QCAD found 4 fonts and proposes to subtitute it with 'Miriam'.
Regards,
CVH
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
Re: Support for Hebrew fonts (.shx)
I tried manually changing the font - all that does is change the font, not the encoding (which is the issue). Latin characters remain.CVH wrote: ↑Mon Jul 05, 2021 9:54 pmOk, got it
What you can do is edit one text entity its font.
If 'Miriam CLM' is the last font in the list then QCAD did not made the match.
You can also see that the TTF file is called 'MiriamCLM-Book' or 'Bold' or 'MiriamMonoCLM ...'
What I also don't understand is that QCAD found 4 fonts and proposes to subtitute it with 'Miriam'.
Regards,
CVH
It found 4 fonts because there are 4 fonts that the draftsman used: HEBTXT, MYRIL, mirym, heb. All of these are .shx. Text is shown in 'properties' in Latin characters but is encoded into Hebrew on the sheet itself.
All I'm wondering if there's a magical way QCAD can read .shx fonts, because at this point it seems it can't even detect they exist.
Re: Support for Hebrew fonts (.shx)
I think you are right - the Miriam CLM is already a substitution. The original font was one of four: HEBTEXT, MIRYL, mirym, heb, all of which are .shx.Husky wrote: ↑Mon Jul 05, 2021 11:07 pmI've the feeling (feeling! no proof!) that the font Miriam CLM is not a 100% match. And I think that the Miriam CLM fonts which we now find in the drawing is already a font substitution. Correct? If I'm right then we have no idea which font was proper working for this specific text line ...
I actually manually changed the text you selected to unicode so that the characters would be natively Hebrew. That's why you see it that way. It's time consuming but doable for small sheets. It becomes a problem for large sheets as it then becomes outright cisyphic work.Nevertheless - the font contains Arabic and Hebrew glyphs ...
Husky-2021.07.05-04.png
... what means an outcome like this Hebrew written right to left ...
Husky-2021.07.05-01.png
.... or Arabic written left to right ...
Husky-2021.07.05-02.png
I think you're correct and the designer used an input style that isn't being processed by QCAD. Is there a way to configure styles?is possible with the same font depending on which input style the designer of the drawing has used.
If I would be in your situation I would try to get my hands on the original used fonts ...
I'm almost positive the designer used an .shx so QCAD won't detect it anyhow. Notice that the text characters are Latin.
Re: Support for Hebrew fonts (.shx)
My problem is .............................. I don't speak Hebrew.
... and the www is not really helping me. Well, I found a Hebrew ttf font but I don't know how usable the substitution is. Makes this any sense??? I doubt that because the drawing has assumingly not anymore the original fonts
https://www.qcad.org/en/tutorial-editing-cxf-fonts
... and the www is not really helping me. Well, I found a Hebrew ttf font but I don't know how usable the substitution is. Makes this any sense??? I doubt that because the drawing has assumingly not anymore the original fonts
You could create your own CXF font with QCAD:
https://www.qcad.org/en/tutorial-editing-cxf-fonts
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
Re: Support for Hebrew fonts (.shx)
Then that was the wrong turn, here one should have provided {HEBTEXT, MIRYL, mirym, heb} in TTF format.
Most TTF fonts that support Hebrew glyphs have indeed the standard Latin characters up to 128,
where a compiled shape or font file (SHX) might associate Hebrew glyphs with those ASCII addresses.
That should have been the topic title.
I know of no functional route from SHX fonts to CXF fonts, the shape file format native to QCAD.
It might even be that SHX is a proprietary format.
But what I do find on that format tells me that many things in a SHX file can't be converted to the CXF format.
Regards,
CVH
Re: Support for Hebrew fonts (.shx)
Interesting, but no, it doesn't make any senseHusky wrote: ↑Tue Jul 06, 2021 11:26 pmMy problem is .............................. I don't speak Hebrew.
... and the www is not really helping me. Well, I found a Hebrew ttf font but I don't know how usable the substitution is. Makes this any sense??? I doubt that because the drawing has assumingly not anymore the original fonts
Husky-2021.07.06-02.png
Which ttf font did you use? It seems at least like a step in the right direction as the characters are Hebrew...
Thanks! I'm going to look into that.Husky wrote: ↑Tue Jul 06, 2021 11:26 pmYou could create your own CXF font with QCAD:
https://www.qcad.org/en/tutorial-editing-cxf-fonts
Re: Support for Hebrew fonts (.shx)
https://freefontsdownload.net/find.php?q=hebrew
Maybe you can use the mentioned Hebrew fonts to built a customized cxf font ...shim wrote: ↑Thu Jul 08, 2021 10:32 amThanks! I'm going to look into that.Husky wrote: ↑Tue Jul 06, 2021 11:26 pmYou could create your own CXF font with QCAD:
https://www.qcad.org/en/tutorial-editing-cxf-fonts
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."