Accent support on fonts.

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Accent support on fonts.

ClaudeQC

Extracted from Sourceforge bug tracker (https://sourceforge.net/tracker/?func=detail&aid=3374293&group_id=342582&atid=1433844):

>
> Claude,
>
> to show these characters you need to select the normallattin2 stickfont.
> Not all fonts have these characters like ñ è etc, but normallattin2 has
> them.
>
> This patch was one day supplied for QCad by Dionysos and the forum message
> can be found here :
> http://www.qcad.org/rsforum/viewtopic.php?t=853&sid=b7ffb69bddac5442f02d926a570fd9ce
>
> This is a well known issue within LibreCAD/QCad and most users know to use
> the normallatin2 stickfont.
>
> Ries
>


Hello Ries,

Interesting.

- Wondering why the above mentioned patch was not done on the "standard"
  font, since in AutoCAD/IntelliCAD, "STANDARD" font do support
  text with accent, and "standard" font is more prone to use than
  "normallatin2".


Claude


Reply | Threaded
Open this post in threaded view
|

Re: Accent support on fonts.

R. van Twisk
Administrator

On Jul 24, 2011, at 8:35 AM, ClaudeQC [via LibreCAD] wrote:


Extracted from Sourceforge bug tracker (https://sourceforge.net/tracker/?func=detail&aid=3374293&group_id=342582&atid=1433844):

>
> Claude,
>
> to show these characters you need to select the normallattin2 stickfont.
> Not all fonts have these characters like ñ è etc, but normallattin2 has
> them.
>
> This patch was one day supplied for QCad by Dionysos and the forum message
> can be found here :
> http://www.qcad.org/rsforum/viewtopic.php?t=853&sid=b7ffb69bddac5442f02d926a570fd9ce
>
> This is a well known issue within LibreCAD/QCad and most users know to use
> the normallatin2 stickfont.
>
> Ries
>


Hello Ries,

Interesting.

- Wondering why the above mentioned patch was not done on the "standard"
  font, since in AutoCAD/IntelliCAD, "STANDARD" font do support
  text with accent, and "standard" font is more prone to use than
  "normallatin2".


Claude


Claude,

I don't know the history of this patch so I only know that normallatin2 was modified.

In filterdxf we do something like this:

        if (sty=="simplex") {
            sty="normallatin2";
        }

Should we add STANDARD to that aswell? 
or may be better, what if we 'alias' standard to normallatin2?

Ries






If you reply to this email, your message will be added to the discussion below:
http://librecad.1049103.n5.nabble.com/Accent-support-on-fonts-tp4627948p4627948.html
To start a new topic under LibreCAD, email [hidden email]
To unsubscribe from LibreCAD, click here.

Reply | Threaded
Open this post in threaded view
|

Re: Accent support on fonts.

ClaudeQC

On 24/07/2011 09:50, R. van Twisk [via LibreCAD] wrote:

 >
 > On Jul 24, 2011, at 8:35 AM, ClaudeQC [via LibreCAD] wrote:
 >
 >>
 >> Extracted from Sourceforge bug tracker
 >>
(https://sourceforge.net/tracker/?func=detail&aid=3374293&group_id=342582&atid=1433844): 

 >>
<https://sourceforge.net/tracker/?func=detail&aid=3374293&group_id=342582&atid=1433844):>
 >>
 >> >
 >> > Claude,
 >> >
 >> > to show these characters you need to select the normallattin2 stickfont.
 >> > Not all fonts have these characters like ñ è etc, but normallattin2 has
 >> > them.
 >> >
 >> > This patch was one day supplied for QCad by Dionysos and the forum message
 >> > can be found here :
 >> >
 >>
http://www.qcad.org/rsforum/viewtopic.php?t=853&sid=b7ffb69bddac5442f02d926a570fd9ce 

 >>
<http://www.qcad.org/rsforum/viewtopic.php?t=853&sid=b7ffb69bddac5442f02d926a570fd9ce>
 >> >
 >> > This is a well known issue within LibreCAD/QCad and most users know to use
 >> > the normallatin2 stickfont.
 >> >
 >> > Ries
 >> >
 >>
 >>
 >> Hello Ries,
 >>
 >> Interesting.
 >>
 >> - Wondering why the above mentioned patch was not done on the "standard"
 >> font, since in AutoCAD/IntelliCAD, "STANDARD" font do support
 >> text with accent, and "standard" font is more prone to use than
 >> "normallatin2".
 >>
 >>
 >> Claude
 >>
 >
 > Claude,
 >
 > I don't know the history of this patch so I only know that normallatin2 was
 > modified.
 >
 > In filterdxf we do something like this:
 >
 > if (sty=="simplex") {
 > sty="normallatin2";
 > }
 >
 > Should we add STANDARD to that aswell?
 > or may be better, what if we 'alias' standard to normallatin2?
 >
 > Ries
 >

- I am puzzled about that issue...

- Since "standard" font seems to exist in LibreCAD as in AutoCAD, I think
   that we have to keep it, and patch it to add accents support (later).
   This way, LibreCAD will truly support "standard" font.


Claude




Reply | Threaded
Open this post in threaded view
|

Re: Accent support on fonts.

R. van Twisk
Administrator

On Jul 24, 2011, at 9:51 AM, ClaudeQC [via LibreCAD] wrote:


On 24/07/2011 09:50, R. van Twisk [via LibreCAD] wrote:

 >
 > On Jul 24, 2011, at 8:35 AM, ClaudeQC [via LibreCAD] wrote:
 >
 >>
 >> Extracted from Sourceforge bug tracker
 >>
(https://sourceforge.net/tracker/?func=detail&aid=3374293&group_id=342582&atid=1433844): 

 >>
<https://sourceforge.net/tracker/?func=detail&aid=3374293&group_id=342582&atid=1433844):>
 >>
 >> >
 >> > Claude,
 >> >
 >> > to show these characters you need to select the normallattin2 stickfont.
 >> > Not all fonts have these characters like ñ è etc, but normallattin2 has
 >> > them.
 >> >
 >> > This patch was one day supplied for QCad by Dionysos and the forum message
 >> > can be found here :
 >> >
 >>
http://www.qcad.org/rsforum/viewtopic.php?t=853&sid=b7ffb69bddac5442f02d926a570fd9ce 

 >>
<http://www.qcad.org/rsforum/viewtopic.php?t=853&sid=b7ffb69bddac5442f02d926a570fd9ce>
 >> >
 >> > This is a well known issue within LibreCAD/QCad and most users know to use
 >> > the normallatin2 stickfont.
 >> >
 >> > Ries
 >> >
 >>
 >>
 >> Hello Ries,
 >>
 >> Interesting.
 >>
 >> - Wondering why the above mentioned patch was not done on the "standard"
 >> font, since in AutoCAD/IntelliCAD, "STANDARD" font do support
 >> text with accent, and "standard" font is more prone to use than
 >> "normallatin2".
 >>
 >>
 >> Claude
 >>
 >
 > Claude,
 >
 > I don't know the history of this patch so I only know that normallatin2 was
 > modified.
 >
 > In filterdxf we do something like this:
 >
 > if (sty=="simplex") {
 > sty="normallatin2";
 > }
 >
 > Should we add STANDARD to that aswell?
 > or may be better, what if we 'alias' standard to normallatin2?
 >
 > Ries
 >

- I am puzzled about that issue...

- Since "standard" font seems to exist in LibreCAD as in AutoCAD, I think
   that we have to keep it, and patch it to add accents support (later).
   This way, LibreCAD will truly support "standard" font.


What About just copy??
Rallaz, do you have an opinion about the standard font vs normallatin2?

Ries


Claude







If you reply to this email, your message will be added to the discussion below:
http://librecad.1049103.n5.nabble.com/Accent-support-on-fonts-tp4627948p4628071.html
To start a new topic under LibreCAD, email [hidden email]
To unsubscribe from LibreCAD, click here.

Reply | Threaded
Open this post in threaded view
|

Re: Accent support on fonts.

ClaudeQC

On 24/07/2011 12:43, R. van Twisk [via LibreCAD] wrote:

 >>
 >> - I am puzzled about that issue...
 >>
 >> - Since "standard" font seems to exist in LibreCAD as in AutoCAD, I think
 >> that we have to keep it, and patch it to add accents support (later).
 >> This way, LibreCAD will truly support "standard" font.
 >>
 >
 > What About just copy??
 > Rallaz, do you have an opinion about the standard font vs normallatin2?
 >
 > Ries
 >

- Just copying fonts to create another fonts can be a solution to make
   LibreCAD looks like supporting all current DXF fonts.
   This way, there is no font filtering to do at all, and text font
   information are preserved in the DXF file, instead of being changed
   to another "equivalent" font.

- However, if doing things that way, it will be better to take notes of
   all these cloned fonts, to know which fonts are cloned font, and must
   be patched later.

Claude



Reply | Threaded
Open this post in threaded view
|

Re: Accent support on fonts.

Rallaz
Ries, Claude

About AutoCAD (ACAD) text styles and fonts files.

text styles in ACAD indicate the font file and the text height to use.

ACAD have the STANDARD text style that is similar to layer 0, can not be deleted.
In old ACAD versions the STANDARD style have the font "txt.shx" in modern versions
the font is "arial.ttf".

The above is applied in TEXT entities, for MTEXT change, can be drawn with a style, or directly to one or more fonts.

In DXF text styles is a TABLE entry with code 3 indicating the font:
  0
STYLE
  2
STANDARD
100
AcDbTextStyleTableRecord
  3
txt.shx


My opinion:

When reading a DXF file LibreCAD should use text styles to find the font used by each entity text and use the most similar.

Ideally, each text have to remember what font file is used (if not exist in LibreCAD) to is not lost when you save the DXF. If the text is created or modified in librecad no longer need to remember.

For CXF files ALL should be drawing different and have the same characters

Files normal.cxf, normallatin1.cxf and  normallatin2.cxf are identical drawing the chars but differs in numbrer of supported chars
I would erase normal and normallatin1 and rename normallatin2 to normal but...(see normallatin1.readme)

Rallaz

ps.
Remember my bad english, if something is not understood I can try to clarify
Reply | Threaded
Open this post in threaded view
|

Re: Accent support on fonts.

ClaudeQC


On 25/07/2011 08:32, Rallaz [via LibreCAD] wrote:

 >
 > About AutoCAD (ACAD) text styles and fonts files.
 >
 > text styles in ACAD indicate the font file and the text height to use.
 >
 > ACAD have the STANDARD text style that is similar to layer 0, can not
 > be deleted.
 > In old ACAD versions the STANDARD style have the font "txt.shx" in
 > modern versions
 > the font is "arial.ttf".
 >
 > The above is applied in TEXT entities, for MTEXT change, can be drawn
 > with a
 > style, or directly to one or more fonts.
 >
 > In DXF text styles is a TABLE entry with code 3 indicating the font:
 > 0
 > STYLE
 > 2
 > STANDARD
 > 100
 > AcDbTextStyleTableRecord
 > 3
 > txt.shx
 >
 >
 > My opinion:
 >
 > When reading a DXF file LibreCAD should use text styles to find the font
 > used
 > by each entity text and use the most similar.
 >
 > Ideally, each text have to remember what font file is used (if not
 > exist in
 > LibreCAD) to is not lost when you save the DXF. If the text is created
 > or
 > modified in librecad no longer need to remember.
 >
 > For CXF files ALL should be drawing different and have the same
 > characters
 >
 > Files normal.cxf, normallatin1.cxf and normallatin2.cxf are identical
 > drawing
 > the chars but differs in numbrer of supported chars
 > I would erase normal and normallatin1 and rename normallatin2 to normal
 > but...(see normallatin1.readme)
 >


Hello Rallaz,

- You seem to know AutoCAD a lot.

- I do not known as much as you AutoCAD internal, but
   based on your explanations, will it be better to rename or copy
   normallatin2.cxf as txt.cxf.

- In LibreCAD, since there is no support for TTF fonts; apply a filter
   to the DXF font "arial.ttf", to make it processed using the
   "txt.cxf" font.

- This way, when "txt.shx" or/and "arial.ttf" will be used in a
   drawing, they will appear as defined in "txt.cxf".

- Additional fonts filters can be added to make all DXF
   fonts not supported by LibreCAD use the "txt.cxf" font !?
   Every time a new LibreCAD font will be added, that filter can be
   modified to use the new created font.

- Example:

        Font name in DXF LibreCAD font used
        ---------------- ------------------
        txt.shx txt.cxf
        arial.ttf txt.cxf
        ic-romans.shx romans.cxf
        ... ...


- Remarks:
        - I currently use IntelliCAD (by Autodsys), and it use "txt.shx"
          as the default font for the "STANDARD" text style.


Claude



Reply | Threaded
Open this post in threaded view
|

Re: Accent support on fonts.

Rallaz
I use AutoCAD since version 11, current acad 2012, and yes, I read all
the documentation!!

The problem is that txt.shx is a bad font, but very fast designed for
older computers (286, 486, pentium...)
txt.shx font uses only the people who know, the 'o' is a square.

Instead of copying/renaming normallatin2.cxf I write simplex.cxf as
normallatin2+normallatin1+normal if anyone is interested

simplex.cxf.zip (6K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Accent support on fonts.

ClaudeQC

On 27/07/2011 14:00, rallazz [via LibreCAD] wrote:

 >
 > I use AutoCAD since version 11, current acad 2012, and yes, I read all
 > the documentation!!
 >

- The first release of AutoCAD I used was R9 or R10.

- Later, I switched to AutoSketch R2.1 (win16).  This release of
   AutoSketch was probably the best 2D CAD I have ever used.

- Now, I use IntelliCAD.

- The CAD I really love the most was AutoSketch R2.1.
   Because it was a simple, easy to use 2D CAD, with similar tools
   as the tools in AutoCAD.


 >
 > The problem is that txt.shx is a bad font, but very fast designed for
 > older computers (286, 486, pentium...)
 > txt.shx font uses only the people who know, the 'o' is a square.
 >

- Interesting.
   But, I was never really annoyed by that "bad font".


 >
 > Instead of copying/renaming normallatin2.cxf I write simplex.cxf as
 > normallatin2+normallatin1+normal if anyone is interested
 >

- Thank you for this font.

- Surprisingly, I am not able to see anything when opening this file
   with LibreCAD (blank window).
   When I open the same file with QCAD Professional, I can see the
   font.
   This lead me to think that there is a bug in LibreCAD, when
   editing .cxf file.  This is something to investigate.


Claude




Reply | Threaded
Open this post in threaded view
|

Re: Accent support on fonts.

R. van Twisk
Administrator

On Jul 27, 2011, at 9:22 PM, ClaudeQC [via LibreCAD] wrote:


On 27/07/2011 14:00, rallazz [via LibreCAD] wrote:

 >
 > I use AutoCAD since version 11, current acad 2012, and yes, I read all
 > the documentation!!
 >

- The first release of AutoCAD I used was R9 or R10.

- Later, I switched to AutoSketch R2.1 (win16).  This release of
   AutoSketch was probably the best 2D CAD I have ever used.

- Now, I use IntelliCAD.

- The CAD I really love the most was AutoSketch R2.1.
   Because it was a simple, easy to use 2D CAD, with similar tools
   as the tools in AutoCAD.


 >
 > The problem is that txt.shx is a bad font, but very fast designed for
 > older computers (286, 486, pentium...)
 > txt.shx font uses only the people who know, the 'o' is a square.
 >

- Interesting.
   But, I was never really annoyed by that "bad font".


 >
 > Instead of copying/renaming normallatin2.cxf I write simplex.cxf as
 > normallatin2+normallatin1+normal if anyone is interested
 >

- Thank you for this font.

- Surprisingly, I am not able to see anything when opening this file
   with LibreCAD (blank window).
   When I open the same file with QCAD Professional, I can see the
   font.
   This lead me to think that there is a bug in LibreCAD, when
   editing .cxf file.  This is something to investigate.



Claude, can you see if you have all sort os layers (or blocks, I cannot remember) defined?
Each block or layer should be a single character.

I am not sure anymore if the old QCad ce version could also show all characters on layer 0...

Ries

Claude







If you reply to this email, your message will be added to the discussion below:
http://librecad.1049103.n5.nabble.com/Accent-support-on-fonts-tp4627948p4641015.html
To start a new topic under LibreCAD, email [hidden email]
To unsubscribe from LibreCAD, click here.

Reply | Threaded
Open this post in threaded view
|

Re: Accent support on fonts.

ClaudeQC


On 27/07/2011 22:25, R. van Twisk [via LibreCAD] wrote:

 >>
 >>
 >> - Surprisingly, I am not able to see anything when opening this file
 >> with LibreCAD (blank window).
 >> When I open the same file with QCAD Professional, I can see the
 >> font.
 >> This lead me to think that there is a bug in LibreCAD, when
 >> editing .cxf file. This is something to investigate.
 >>
 >>
 >
 > Claude, can you see if you have all sort os layers (or blocks, I cannot
 > remember) defined?
 > Each block or layer should be a single character.
 >
 > I am not sure anymore if the old QCad ce version could also show all
 > characters
 > on layer 0...
 >


Hello Ries,

- I attached 2 "Print Screen" of "normal.cxf" font.  One is "normal.cxf"
   opened with QCAD, and the other is "normal.cxf" opened with
   LibreCAD.

- On the LibreCAD "Print Screen", we can see that block [0000] to [0020]
   do not exist.


- P.S.:  Have you seen my new patch about entity width bug, when doing
   a print or print preview.  This bug is also present in the latest
   release of QCAD Prof. (2.2.2.0), and was never fixed.
   Applying this patch will prove again that Open Source really work
   and make software better  ;-)


Claude




font_normal_cxf.tar.gz (143K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Accent support on fonts.

R. van Twisk
Administrator

On Jul 27, 2011, at 10:02 PM, ClaudeQC [via LibreCAD] wrote:



On 27/07/2011 22:25, R. van Twisk [via LibreCAD] wrote:

 >>
 >>
 >> - Surprisingly, I am not able to see anything when opening this file
 >> with LibreCAD (blank window).
 >> When I open the same file with QCAD Professional, I can see the
 >> font.
 >> This lead me to think that there is a bug in LibreCAD, when
 >> editing .cxf file. This is something to investigate.
 >>
 >>
 >
 > Claude, can you see if you have all sort os layers (or blocks, I cannot
 > remember) defined?
 > Each block or layer should be a single character.
 >
 > I am not sure anymore if the old QCad ce version could also show all
 > characters
 > on layer 0...
 >


Hello Ries,

- I attached 2 "Print Screen" of "normal.cxf" font.  One is "normal.cxf"
   opened with QCAD, and the other is "normal.cxf" opened with
   LibreCAD.

- On the LibreCAD "Print Screen", we can see that block [0000] to [0020]
   do not exist.

Claude and Rallaz,

I will leave it up to you guys what to do.
I always used normallatin2 because that works and I have no idea about some others :)



- P.S.:  Have you seen my new patch about entity width bug, when doing
   a print or print preview.  This bug is also present in the latest
   release of QCAD Prof. (2.2.2.0), and was never fixed.
   Applying this patch will prove again that Open Source really work
   and make software better  ;-)

Yes, I have seen the bug but I am afraid it will be this weekend or at it's
earliest friday when I can take a look.

Ries



Claude




<img src="x-msg://298/images/icon_attachment.gif"> font_normal_cxf.tar.gz (143K) <a href="x-msg://298/attachment/4641094/0/font_normal_cxf.tar.gz" target="_top" rel="nofollow" link="external">Download Attachment



If you reply to this email, your message will be added to the discussion below:
http://librecad.1049103.n5.nabble.com/Accent-support-on-fonts-tp4627948p4641094.html
To start a new topic under LibreCAD, email [hidden email]
To unsubscribe from LibreCAD, click here.

Reply | Threaded
Open this post in threaded view
|

Re: Accent support on fonts.

ClaudeQC

On 28/07/2011 08:25, R. van Twisk [via LibreCAD] wrote:

 >
 > I will leave it up to you guys what to do.
 > I always used normallatin2 because that works and I have no idea about some
 > others :)
 >

- I think the idea of Rallaz is good.
   Doing mix with already existing .cxf fonts to create AutoCAD like fonts
   like simplex, txt, etc., is a good way to make LibreCAD have fonts
   that match the .shx font used in AutoCAD.  This way original LibreCAD
   fonts will remain available to user that already use it.

- I done some tests, and it seems that LibreCAD behave strangely
   when using font added manually to its font directory.  It is like
   the added font is not seen by LibreCAD, when the drawing is re-opened.
   Also, LibreCAD seems to not be able to match font name like "simplex.shx"
   with its own font, and use this corresponding font.
   I think some improvement have to be done in this area.


Claude