Re: Accent support on fonts.
Posted by Rallaz on Jul 25, 2011; 12:32pm
URL: https://forum.librecad.org/Accent-support-on-fonts-tp4627948p4630584.html
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