Keldos-Li / typora-latex-theme

将Typora伪装成LaTeX的中文样式主题,本科生轻量级课程论文撰写的好帮手。This is a theme disguising Typora into Chinese LaTeX style.
GNU General Public License v3.0
4.69k stars 305 forks source link

Fonts problem #6

Closed Esayanubn closed 3 years ago

Esayanubn commented 3 years ago

when I try to install the fonts file in the /Supplemental/Fonts in Windows 10, these four files in attachment can't be installed and opened. Meanwhile, after I installed the files that could be install and changed the theme to "latex(typora-latex-theme)", it seems still no fonts showed. QN(2G59$G~DJH~$FF0EYGVK

Keldos-Li commented 3 years ago

update (2021.5.30 18:00 GMT+8): 或许是因为Windows暂时没有很好地添加对ttc字体集格式的支持?可以先试着用uniteTTC之类的软件将ttc分解成ttf再尝试安装? 可是华文仿宋是为啥不行呢……


我猜测是因为这几个字体文件是直接从苹果系统字体里导出来的,字体文件中额外放置了一些信息阻止它们被传播与二次安装。

macOS用户理论上不需要重新安装这些字体

如果有人能解决请告诉我。或许我应该重新找一些字体文件让非macOS用户安装。在下一个版本更新前,请您先替换电脑中的可用字体。不过我猜除了苹方其他的字体在Windows中也是默认安装的(吧)。


I guess it's because these font files are directly exported from the Apple system font, and some information is placed in the font file to prevent them from being spread and re-installed.

macOS users theoretically do not need to reinstall these fonts

If someone can solve this, please tell me. Maybe I should re-find some font files for non-macOS users to install. Before the next version is updated, please replace them with the available fonts on your computer. But I guess other fonts besides pingfang are already installed by default in Windows.

Keldos-Li commented 3 years ago

另外大家提issue可以用中文。都是中国大学生。外国用户应该已经被我赶走了……🤔

Keldos-Li commented 3 years ago

有人试试用这个方法尝试下吗 https://appuals.com/fix-does-not-appear-to-be-a-valid-font/

Keldos-Li commented 3 years ago

win的字体渲染机制就是一坨屎

啊啊啊再见吧

在改了在改了。

我要不要用两个branch一个Mac一个Win啊

Keldos-Li commented 3 years ago

@Esayanubn 尽管我确实还没能解决font安装的问题,但是我确信我暂时修复了latex亮色主题字体没有显示效果和偏好设置中显示效果的问题。新的代码存放在命名为 "iss6" 的一个新 branch下 的 css 文件夹中,名字为latex-win.css,还未进行合并,如有需要可先下载测试!谢谢!

7

Keldos-Li commented 3 years ago

现在应该可以了。