sanskrit-lexicon/MWS

web font for iast?

funderburkjim opened this issue · 2 comments

@aumsanskrit mentions that a candra-bindu (bold) did not render.

Anomaly


On my system, that character DOES display.

scott_candra_bindu

Text marked as sanskrit (the <s> tag) is displayed according to the 'output' type selection.
When the output is Devanagari, a special 'web font' is used (currently siddhanta1) -- this can be confirmed by (a) right-clicking on some devanagari text, and choosing 'inspect' -- then 'computed' -- this will show the font:

image

Doing the same thing for iast output, we see

image

Notice that a local font is being used.

So this iast text is rendered by a local font rather than a system font.
There is some difference between Scott's local (default browser) font and mine.

It would be possible to use a web-font for iast.
a. Choose such a web font

  • since the problem occurred with 'bold' text but not 'normal' text, the web font
    should handle bold as well as normal text
    b. modify csl-websanlexicon to make use of this web font (for basic, etc. displays)
  • several places to modify
    c. make similar modifications to csl-apidev for simple-search displays

I don't plan to do these modifications now; maybe this open issue will catch someone's attention sometime.