How to use the computer modern font in webpages?

后端 未结 6 1062
慢半拍i
慢半拍i 2021-01-30 02:46

I never see Computer Modern font, the one shipped as default for LaTeX type setting system, on any webpage.

How to change the CSS so that font will actually wor

6条回答
  •  甜味超标
    2021-01-30 03:11

    Using the Computer Modern font in webpages has become very easy! Just paste the following lines of CSS code in the head section of your html code in order to activate the sans-serif version of that font.

    
    

    Note that the solution here makes the browser load the current version of the fonts from a CTAN mirror, which can be very slow. This is okay for testing purposes, but in the long run I'd recommend you download these .otf files to your own webserver.

提交回复
热议问题