Omniblox / Eagle-Loader

THREE.js Loader for EAGLE .brd files
https://omniblox.io
MIT License
19 stars 4 forks source link

Replace text font with more accurate representation? #31

Open follower opened 7 years ago

follower commented 7 years ago

From "Vector Font available elsewhere?":

[Is] the Vector Style Font that is utilized within EAGLE available as a standard Font for use in other softwares? In old MS-DOS times, that font (plus several others) was shipped with all of Borland's "Turbo" compilers (which I think is the reason why CadSoft uses that font). [...] LITT.CHR [...] Legal issues: [...]

Seems like the LITT.CHR font was at some time converted into an approximation in .ttf form (by a designer with the non-search-engine friendly name "Character") and is widely available over the net: e.g. http://www.fontspace.com/character/litt & https://www.onlinewebfonts.com/download/2e08e25c2fee3c5bb759d7fa1ed99ec4. The license for this font states "You are hereby licensed to do whatever you wish with this.".

Example render via FontSpace (compare with the current render and actual board photo shown in https://github.com/Omniblox/Eagle-Loader/issues/11#issue-191526906): litt-ttf-example-screenshot

The licensing of the original .CHR font file in terms of re-distribution is unclear. (The thread linked at the top of this ticket has more discussion of this aspect.)

It appears that the TrueType version of the font is limited in its accuracy by virtue of the fact it is an outline font while the other is a stroke/line font. If we wanted even more accurate representation we could (of course :p ) implement a parser/renderer for the .CHR format in Javascript, as it appears the font format is at least somewhat documented and relatively straight forward:

The original LITT.CHR file also seems available in multiple places, e.g.: https://github.com/vincentbernat/old-turbo-pascal-programs/blob/master/TP/LITT.CHR

Other potentially useful references:

For reasons of checking similarity, the lower case "k" character is helpful.