Following changes to warnings/errors concerning unicode:
If XeLaTeX doesn't have a glyph for a given character it will print the following log message:
Missing character: There is no α in font cmr10!
getMetricsFromLatex should detect these messages in the log file and:
Print a warning message so the user knows they may need to switch fonts. Missing characters get replaced with blank spaces in the final output.
Return invalid metrics so that an entry won't get created in the metrics dictionary (currently string width is calculated as 1).
Change pdftex unicode error to a warning. This error is currently thrown because it is very difficult to determine which packages need to be loaded in order to provide glyphs for a given Unicode character (XeTeX resolves this with better support for fonts). However, many users will know what to place in tikzLatexPackages in order to make things work. Therefore, the error should be changed to a warning that:
Lets users know they should switch to xetex or manually edit tikzLatexPackages for best results.
Can be disabled by setting an option so users who know what they are doing don't get spammed.
Following changes to warnings/errors concerning unicode:
If XeLaTeX doesn't have a glyph for a given character it will print the following log message:
Missing character: There is no α in font cmr10!
getMetricsFromLatex
should detect these messages in the log file and:pdftex
unicode error to a warning. This error is currently thrown because it is very difficult to determine which packages need to be loaded in order to provide glyphs for a given Unicode character (XeTeX resolves this with better support for fonts). However, many users will know what to place intikzLatexPackages
in order to make things work. Therefore, the error should be changed to a warning that:xetex
or manually edittikzLatexPackages
for best results.