Re: Accent support on fonts.
Posted by ClaudeQC on Jul 25, 2011; 4:04pm
URL: https://forum.librecad.org/Accent-support-on-fonts-tp4627948p4631340.html
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