Thanks André. I introduced RRbar using your proposal in my latest PR, in order to compare how they look.Anyone has an idea for \hat{R} ? It's particularly strange that it works when I generate the html locally, though I haven't done anything special with fonts, and on the contrary, it does not work on metamath.org where, if I understood correctly, a special set of fonts is loaded locally?
--
You received this message because you are subscribed to the Google Groups "Metamath" group.
To unsubscribe from this group and stop receiving emails from it, send an email to metamath+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/metamath/CAL1T4B1na4%2BmsJvjJm-MxDS%3D%2Bve3w-c_hon%2BBqPQVyzaWF6H0A%40mail.gmail.com.
Oh dear, this will generate horribly large HTML files. If this glyph could be added to the header and referred to, it may work better. I guess since it's SVG you could just put it in an SVG file and load it like any other image.
Thanks André and Mario.
I tweaked a bit the html code of http://us2.metamath.org/mpeuni/ccchat.html , changing the fonts. Some font choices give nicer results.

My conclusion is that we should use
althtmldef "CChat" as "ℂ̂";
because it is simple, semantically correct, and correctly generates a single glyph. I think that the problem is with the font. Something like XITS not supporting unicode combining characters? Maybe I should report it to https://github.com/alif-type/xits ?
I actually prefer to have an ugly symbol with a simple and correct code (that generates "text-only") than go into very intricate hard-to-maintain code in order to have a better looking symbol.
> When I replace XITS with STIX in the html code, everything looks nice. I'm
> not sure what this entails, but would it be possible/desirable to switch
> from XITS to STIX ?
It's possible. As you noted, a new version of STIX has been released, and it
might produce "better" results than XITS.
I think we ought to try it out on many platforms before committing to such a change.
Sometimes fonts work well only on specific platforms, and that wouldn't be good.
@font-face {
font-family: XITSMath-Regular;
src: url(xits-math.woff);
}
.math { font-family: XITSMath-Regular }