Arabic fonts

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Arabic fonts

abdulkhaliq
Hi
I'm having a problem when I try to use Arabic characters, where boxes appear instead of the Arabic letters, I hope to show me the correct way to correct this error.
Reply | Threaded
Open this post in threaded view
|

Re: Arabic fonts

dxli
Fonts selection is needed for support beyond standard ASCII.

If "unicode" doesn't provide Arabic, please let us know.

abdulkhaliq wrote
Hi
I'm having a problem when I try to use Arabic characters, where boxes appear instead of the Arabic letters, I hope to show me the correct way to correct this error.
Reply | Threaded
Open this post in threaded view
|

Re: Arabic fonts

abdulkhaliq
If my understanding was correct to your post, I changed the fonts to unicode, but it appeared the same problem.
Reply | Threaded
Open this post in threaded view
|

Re: Arabic fonts

dxli
Sorry, I can confirm that there is currently no LFF fonts in code base for arabic (UTF-8 block , 0600 - 06FF).

Please help us improve arabic support.

1, find TTF fonts with free software license;
2, convert TTF to LFF using the tool shipped with LibreCAD: tff2lff.


abdulkhaliq wrote
If my understanding was correct to your post, I changed the fonts to unicode, but it appeared the same problem.
Reply | Threaded
Open this post in threaded view
|

Re: Arabic fonts

abdulkhaliq
This post was updated on .
Hello
I found these ttf fonts with free software license:
1- KacstOne
2- Amiri

But I dont know how to convert these fonts from  TTF to LFF, I am using ubuntu 14.14 32bit.

KacstOne.ttf
KacstOne-Bold.ttf
amiri-regular.ttf
Reply | Threaded
Open this post in threaded view
|

Re: Arabic fonts

dxli
the tool ttf2lff is not included in the ubuntu package librecad. You can always build librecad from source to get the tool:
http://wiki.librecad.org/index.php/LibreCAD_Installation_from_Source

I have converted amiri-regular, and added to the master branch:

https://github.com/LibreCAD/LibreCAD/blob/master/librecad/support/fonts/amiri-regular.lff

You can download this lff file, save it to the librecad font folder. On Ubuntu, this means:

    $ sudo cp -v ~/Downloads/amiri-regular.lff /usr/share/librecad/fonts/

Restart LibreCAD to be able to select amiri-regular fonts.

Please help test amiri-regular to make sure the conversion was done correctly.


abdulkhaliq wrote
Hello
I found these ttf fonts with free software license:
1- KacstOne
2- Amiri

But I dont know how to convert these fonts from  TTF to LFF, I am using ubuntu 14.14 32bit.

KacstOne.ttf
KacstOne-Bold.ttf
amiri-regular.ttf
Reply | Threaded
Open this post in threaded view
|

Re: Arabic fonts

abdulkhaliq
I'm sorry, I didnt find the download link when I opend  https://github.com/LibreCAD/LibreCAD/blob/master/librecad/support/fonts/amiri-regular.lff
Could you please upload amiri-regular.lff in your post.
Reply | Threaded
Open this post in threaded view
|

Re: Arabic fonts

dxli
After you click to open the github file page https://github.com/LibreCAD/LibreCAD/blob/master/librecad/support/fonts/amiri-regular.lff, you can right click on "view raw" to "Save Link as".

I can not upload this file in this post, because it's size is 7.1MB, beyond the maximum allowed upload size.

The "view raw" link from github is https://github.com/LibreCAD/LibreCAD/blob/master/librecad/support/fonts/amiri-regular.lff?raw=true , for your convenience.

abdulkhaliq wrote
I'm sorry, I didnt find the download link when I opend  https://github.com/LibreCAD/LibreCAD/blob/master/librecad/support/fonts/amiri-regular.lff
Could you please upload amiri-regular.lff in your post.
Reply | Threaded
Open this post in threaded view
|

Re: Arabic fonts

abdulkhaliq
Thank you for your instructions, I was able to install Amiri font in librecad, but there are still two problems:
1. The direction of the text from left to right when I wrote Arabic words, while in the Arabic language the text direction is from right to left.
2.Arabic words is connected characters, while  appeared  separate characters  in the words

Reply | Threaded
Open this post in threaded view
|

Re: Arabic fonts

dxli
This post was updated on .
Thanks for the feedback.

1, "right to left" support can be enabled by some minor changes to LibreCAD;

2, character connection is clearly much harder to implement within the current platform. Any help is welcome;

Another thought, we might rely on Qt platform for font support, whenever stic fonts are not required. In other words, only text is needed, and there's no requirement for the text to be exploded into primitive entities (lines/arcs/circles) . See https://github.com/LibreCAD/LibreCAD/issues/476. Since Qt platform has satisfactory fonts support for a wide range of languages, including right-to-left languages, this type of font trouble could be avoided forever.

abdulkhaliq wrote
Hello,

Thank you for your instructions, I was able to install Amiri font in librecad, but there are still two problems:
1. The direction of the text from left to right when I wrote Arabic words, while in the Arabic language the text direction is from right to left.
2.Arabic words is connected characters, while when I wrote the text  in librecad characters separate words appeared