typora怎么设置中文字体

时间: 2023-11-05 18:53:18 浏览: 534
要设置Typora中文字体,可以按照以下步骤进行操作: 1. 打开Typora软件,点击菜单栏的“偏好设置”选项。 2. 在弹出的窗口中,找到“外观”选项,并点击进入。 3. 在外观选项中,找到“主题”一栏,点击“打开主题文件夹”按钮,这将打开当前主题文件夹。 4. 在主题文件夹中,找到对应的CSS文件。如果你使用的是默认的github主题,那么就找到"github.css"文件。 5. 在CSS文件中找到下面的代码段: ``` body { font-family: "华康手札体W5P","Clear Sans", "Helvetica Neue", Helvetica, Arial, 'Segoe UI Emoji', sans-serif; color: rgb(51, 51, 51); line-height: 1.6; } ``` 6. 在该代码段中,将你想要使用的中文字体放在font-family的第一个位置。比如,如果你想使用楷体,将其放在第一个位置,如下所示: ``` body { font-family: "楷体", "Clear Sans", "Helvetica Neue", Helvetica, Arial, 'Segoe UI Emoji', sans-serif; color: rgb(51, 51, 51); line-height: 1.6; } ``` 7. 保存CSS文件并重新启动Typora,中文字体的设置就完成了。 如果你还想修改代码块中的字体样式,可以按照以下步骤进行操作: 1. 在对应主题文件夹下的CSS文件中,找到以下代码段: ``` .md-fences, code, tt { border: 1px solid #e7eaed; background-color: #f8f8f8; border-radius: 3px; padding: 0; padding: 2px 4px 0px 4px; font-size: 0.9em; font-family: "华康手札体W5P"; } ``` 2. 在该代码段中,将你想要使用的中文字体添加到font-family属性中,如下所示: ``` .md-fences, code, tt { border: 1px solid #e7eaed; background-color: #f8f8f8; border-radius: 3px; padding: 0; padding: 2px 4px 0px 4px; font-size: 0.9em; font-family: "楷体"; } ``` 3. 保存CSS文件并重新启动Typora,代码块中的字体样式也将被修改。 通过以上步骤,你可以轻松地设置Typora的中文字体。记得保存修改并重新启动Typora来使修改生效。
阅读全文

相关推荐

ttf
字体 public class Hz2Py { private static int[] pyValue = new int[] { -20319,-20317,-20304,-20295,-20292,-20283,-20265,-20257,-20242,-20230,-20051,-20036, -20032,-20026,-20002,-19990,-19986,-19982,-19976,-19805,-19784,-19775,-19774,-19763, -19756,-19751,-19746,-19741,-19739,-19728,-19725,-19715,-19540,-19531,-19525,-19515, -19500,-19484,-19479,-19467,-19289,-19288,-19281,-19275,-19270,-19263,-19261,-19249, -19243,-19242,-19238,-19235,-19227,-19224,-19218,-19212,-19038,-19023,-19018,-19006, -19003,-18996,-18977,-18961,-18952,-18783,-18774,-18773,-18763,-18756,-18741,-18735, -18731,-18722,-18710,-18697,-18696,-18526,-18518,-18501,-18490,-18478,-18463,-18448, -18447,-18446,-18239,-18237,-18231,-18220,-18211,-18201,-18184,-18183, -18181,-18012, -17997,-17988,-17970,-17964,-17961,-17950,-17947,-17931,-17928,-17922,-17759,-17752, -17733,-17730,-17721,-17703,-17701,-17697,-17692,-17683,-17676,-17496,-17487,-17482, -17468,-17454,-17433,-17427,-17417,-17202,-17185,-16983,-16970,-16942,-16915,-16733, -16708,-16706,-16689,-16664,-16657,-16647,-16474,-16470,-16465,-16459,-16452,-16448, -16433,-16429,-16427,-16423,-16419,-16412,-16407,-16403,-16401,-16393,-16220,-16216, -16212,-16205,-16202,-16187,-16180,-16171,-16169,-16158,-16155,-15959,-15958,-15944, -15933,-15920,-15915,-15903,-15889,-15878,-15707,-15701,-15681,-15667,-15661,-15659, -15652,-15640,-15631,-15625,-15454,-15448,-15436,-15435,-15419,-15416,-15408,-15394, -15385,-15377,-15375,-15369,-15363,-15362,-15183,-15180,-15165,-15158,-15153,-15150, -15149,-15144,-15143,-15141,-15140,-15139,-15128,-15121,-15119,-15117,-15110,-15109, -14941,-14937,-14933,-14930,-14929,-14928,-14926,-14922,-14921,-14914,-14908,-14902, -14894,-14889,-14882,-14873,-14871,-14857,-14678,-14674,-14670,-14668,-14663,-14654, -14645,-14630,-14594,-14429,-14407,-14399,-14384,-14379,-14368,-14355,-14353,-14345, -14170,-14159,-14151,-14149,-14145,-14140,-14137,-14135,-14125,-14123,-14122,-14112, -14109,-14099,-14097,-14094,-14092,-14090,-14087,-14083,-13917,-13914,-13910,-13907, -13906,-13905,-13896,-13894,-13878,-13870,-13859,-13847,-13831,-13658,-13611,-13601, -13406,-13404,-13400,-13398,-13395,-13391,-13387,-13383,-13367,-13359,-13356,-13343, -13340,-13329,-13326,-13318,-13147,-13138,-13120,-13107,-13096,-13095,-13091,-13076, -13068,-13063,-13060,-12888,-12875,-12871,-12860,-12858,-12852,-12849,-12838,-12831, -12829,-12812,-12802,-12607,-12597,-12594,-12585,-12556,-12359,-12346,-12320,-12300, -12120,-12099,-12089,-12074,-12067,-12058,-12039,-11867,-11861,-11847,-11831,-11798, -11781,-11604,-11589,-11536,-11358,-11340,-11339,-11324,-11303,-11097,-11077,-11067, -11055,-11052,-11045,-11041,-11038,-11024,-11020,-11019,-11018,-11014,-10838,-10832, -10815,-10800,-10790,-10780,-10764,-10587,-10544,-10533,-10519,-10331,-10329,-10328, -10322,-10315,-10309,-10307,-10296,-10281,-10274,-10270,-10262,-10260,-10256,-10254 }; private static string[] pyName = new string[] { "A","Ai","An","Ang","Ao","Ba","Bai","Ban","Bang","Bao","Bei","Ben", "Beng","Bi","Bian","Biao","Bie","Bin","Bing","Bo","Bu","Ba","Cai","Can", "Cang","Cao","Ce","Ceng","Cha","Chai","Chan","Chang","Chao","Che","Chen","Cheng", "Chi","Chong","Chou","Chu","Chuai","Chuan","Chuang","Chui","Chun","Chuo","Ci","Cong", "Cou","Cu","Cuan","Cui","Cun","Cuo","Da","Dai","Dan","Dang","Dao","De", "Deng","Di","Dian","Diao","Die","Ding","Diu","Dong","Dou","Du","Duan","Dui", "Dun","Duo","E","En","Er","Fa","Fan","Fang","Fei","Fen","Feng","Fo", "Fou","Fu","Ga","Gai","Gan","Gang","Gao","Ge","Gei","Gen","Geng","Gong", "Gou","Gu","Gua","Guai","Guan","Guang","Gui","Gun","Guo","Ha","Hai","Han", "Hang","Hao","He","Hei","Hen","Heng","Hong","Hou","Hu","Hua","Huai","Huan", "Huang","Hui","Hun","Huo","Ji","Jia","Jian","Jiang","Jiao","Jie","Jin","Jing", "Jiong","Jiu","Ju","Juan","Jue","Jun","Ka","Kai","Kan","Kang","Kao","Ke", "Ken","Keng","Kong","Kou","Ku","Kua","Kuai","Kuan","Kuang","Kui","Kun","Kuo", "La","Lai","Lan","Lang","Lao","Le","Lei","Leng","Li","Lia","Lian","Liang", "Liao","Lie","Lin","Ling","Liu","Long","Lou","Lu","Lv","Luan","Lue","Lun", "Luo","Ma","Mai","Man","Mang","Mao","Me","Mei","Men","Meng","Mi","Mian", "Miao","Mie","Min","Ming","Miu","Mo","Mou","Mu","Na","Nai","Nan","Nang", "Nao","Ne","Nei","Nen","Neng","Ni","Nian","Niang","Niao","Nie","Nin","Ning", "Niu","Nong","Nu","Nv","Nuan","Nue","Nuo","O","Ou","Pa","Pai","Pan", "Pang","Pao","Pei","Pen","Peng","Pi","Pian","Piao","Pie","Pin","Ping","Po", "Pu","Qi","Qia","Qian","Qiang","Qiao","Qie","Qin","Qing","Qiong","Qiu","Qu", "Quan","Que","Qun","Ran","Rang","Rao","Re","Ren","Reng","Ri","Rong","Rou", "Ru","Ruan","Rui","Run","Ruo","Sa","Sai","San","Sang","Sao","Se","Sen", "Seng","Sha","Shai","Shan","Shang","Shao","She","Shen","Sheng","Shi","Shou","Shu", "Shua","Shuai","Shuan","Shuang","Shui","Shun","Shuo","Si","Song","Sou","Su","Suan", "Sui","Sun","Suo","Ta","Tai","Tan","Tang","Tao","Te","Teng","Ti","Tian", "Tiao","Tie","Ting","Tong","Tou","Tu","Tuan","Tui","Tun","Tuo","Wa","Wai", "Wan","Wang","Wei","Wen","Weng","Wo","Wu","Xi","Xia","Xian","Xiang","Xiao", "Xie","Xin","Xing","Xiong","Xiu","Xu","Xuan","Xue","Xun","Ya","Yan","Yang", "Yao","Ye","Yi","Yin","Ying","Yo","Yong","You","Yu","Yuan","Yue","Yun", "Za", "Zai","Zan","Zang","Zao","Ze","Zei","Zen","Zeng","Zha","Zhai","Zhan", "Zhang","Zhao","Zhe","Zhen","Zheng","Zhi","Zhong","Zhou","Zhu","Zhua","Zhuai","Zhuan", "Zhuang","Zhui","Zhun","Zhuo","Zi","Zong","Zou","Zu","Zuan","Zui","Zun","Zuo" }; /// /// 把汉字转换成拼音(全拼) /// /// 汉字字符串 /// <returns>转换后的拼音(全拼)字符串</returns> public static string Convert(string hzString) { // 匹配中文字符 Regex regex = new Regex("^[\u4e00-\u9fa5]$"); byte[] array = new byte[2]; string pyString = ""; int chrAsc = 0; int i1 = 0; int i2 = 0; char[] noWChar = hzString.ToCharArray(); for (int j = 0; j < noWChar.Length; j++) { // 中文字符 if (regex.IsMatch(noWChar[j].ToString())) { array = System.Text.Encoding.Default.GetBytes(noWChar[j].ToString()); i1 = (short)(array[0]); i2 = (short)(array[1]); chrAsc = i1 * 256 + i2 - 65536; if (chrAsc > 0 && chrAsc < 160) { pyString += noWChar[j]; } else { // 修正部分文字 if (chrAsc == -9254) // 修正“圳”字 pyString += "Zhen"; else { for (int i = (pyValue.Length - 1); i >= 0; i--) { if (pyValue[i] <= chrAsc) { pyString += pyName[i]; break; } } } } } // 非中文字符 else { pyString += noWChar[j].ToString(); } } return pyString; } }

大家在看

recommend-type

2_JFM7VX690T型SRAM型现场可编程门阵列技术手册.pdf

复旦微国产大规模FPGA JFM7VX690T datasheet 手册 资料
recommend-type

网络信息系统应急预案-网上银行业务持续性计划与应急预案

包含4份应急预案 网络信息系统应急预案.doc 信息系统应急预案.DOCX 信息系统(系统瘫痪)应急预案.doc 网上银行业务持续性计划与应急预案.doc
recommend-type

RK eMMC Support List

RK eMMC Support List
recommend-type

DAQ97-90002.pdf

SCPI指令集 详细介绍(安捷伦)
recommend-type

毕业设计&课设-MATLAB的光场工具箱.zip

matlab算法,工具源码,适合毕业设计、课程设计作业,所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通,第一时间进行解答! matlab算法,工具源码,适合毕业设计、课程设计作业,所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通,第一时间进行解答! matlab算法,工具源码,适合毕业设计、课程设计作业,所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通,第一时间进行解答! matlab算法,工具源码,适合毕业设计、课程设计作业,所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通,第一时间进行解答! matlab算法,工具源码,适合毕业设计、课程设计作业,所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通,第一时间进行解答! matlab算法,工具源码,适合毕业设计、课程设计作业,所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随

最新推荐

recommend-type

【机器人】将ChatGPT飞书机器人钉钉机器人企业微信机器人公众号部署到vercel及docker_pgj.zip

【机器人】将ChatGPT飞书机器人钉钉机器人企业微信机器人公众号部署到vercel及docker_pgj
recommend-type

图数据分析中基于对比学习的异常检测算法的Python实现及应用-含代码及详细解释说明

内容概要:本文介绍了一种基于对比学习的图异常检测算法,涵盖数据预处理、对比样本构建、模型设计(含选择适当的GNN架构及设计对比学习模块)、异常检测流程、结果评估方法和代码实例六个主要环节。文章特别强调在常规数据集(如Cora、PubMed)的应用上力求获得较高的AUC分数,超过80%,并且提供了详细的操作指导和Python源代码示例供开发者学习。 适用人群:主要面向有一定机器学习、深度学习理论基础,尤其关注图结构数据处理的研究人员、数据科学家和技术专家。对于有志于从事网络安全监控、金融风控等领域工作的专业人士尤为有用。 使用场景及目标:①针对具有大量节点关系的数据结构进行高效的异常识别;②利用先进的AI技术和工具箱快速搭建并迭代优化系统性能,达成高效准确的预测;③为后续研究提供参考和启示。 其他说明:文中不仅深入解析了每一阶段的技术细节,而且通过具体的Python实现片段帮助读者更好地理解和实践这一复杂的过程。对于期望深入挖掘对比学习在非传统数据格式下应用可能性的人而言是个宝贵的参考资料。
recommend-type

专题调研登记表.docx

专题调研登记表.docx
recommend-type

跟网型逆变器小干扰稳定性分析与控制策略优化simulink仿真模型和代码 现代逆变技术 阻抗重塑 双锁相环 可附赠参考文献(英文) 和一份与模型完全对应的中文版报告

跟网型逆变器小干扰稳定性分析与控制策略优化simulink仿真模型和代码 现代逆变技术 阻抗重塑 双锁相环 可附赠参考文献(英文) 和一份与模型完全对应的中文版报告
recommend-type

黄金价格预测.xlsx

黄金价格预测.xlsx
recommend-type

Python调试器vardbg:动画可视化算法流程

资源摘要信息:"vardbg是一个专为Python设计的简单调试器和事件探查器,它通过生成程序流程的动画可视化效果,增强了算法学习的直观性和互动性。该工具适用于Python 3.6及以上版本,并且由于使用了f-string特性,它要求用户的Python环境必须是3.6或更高。 vardbg是在2019年Google Code-in竞赛期间为CCExtractor项目开发而创建的,它能够跟踪每个变量及其内容的历史记录,并且还能跟踪容器内的元素(如列表、集合和字典等),以便用户能够深入了解程序的状态变化。" 知识点详细说明: 1. Python调试器(Debugger):调试器是开发过程中用于查找和修复代码错误的工具。 vardbg作为一个Python调试器,它为开发者提供了跟踪代码执行、检查变量状态和控制程序流程的能力。通过运行时监控程序,调试器可以发现程序运行时出现的逻辑错误、语法错误和运行时错误等。 2. 事件探查器(Event Profiler):事件探查器是对程序中的特定事件或操作进行记录和分析的工具。 vardbg作为一个事件探查器,可以监控程序中的关键事件,例如变量值的变化和函数调用等,从而帮助开发者理解和优化代码执行路径。 3. 动画可视化效果:vardbg通过生成程序流程的动画可视化图像,使得算法的执行过程变得生动和直观。这对于学习算法的初学者来说尤其有用,因为可视化手段可以提高他们对算法逻辑的理解,并帮助他们更快地掌握复杂的概念。 4. Python版本兼容性:由于vardbg使用了Python的f-string功能,因此它仅兼容Python 3.6及以上版本。f-string是一种格式化字符串的快捷语法,提供了更清晰和简洁的字符串表达方式。开发者在使用vardbg之前,必须确保他们的Python环境满足版本要求。 5. 项目背景和应用:vardbg是在2019年的Google Code-in竞赛中为CCExtractor项目开发的。Google Code-in是一项面向13到17岁的学生开放的竞赛活动,旨在鼓励他们参与开源项目。CCExtractor是一个用于从DVD、Blu-Ray和视频文件中提取字幕信息的软件。vardbg的开发过程中,该项目不仅为学生提供了一个实际开发经验的机会,也展示了学生对开源软件贡献的可能性。 6. 特定功能介绍: - 跟踪变量历史记录:vardbg能够追踪每个变量在程序执行过程中的历史记录,使得开发者可以查看变量值的任何历史状态,帮助诊断问题所在。 - 容器元素跟踪:vardbg支持跟踪容器类型对象内部元素的变化,包括列表、集合和字典等数据结构。这有助于开发者理解数据结构在算法执行过程中的具体变化情况。 通过上述知识点的详细介绍,可以了解到vardbg作为一个针对Python的调试和探查工具,在提供程序流程动画可视化效果的同时,还通过跟踪变量和容器元素等功能,为Python学习者和开发者提供了强大的支持。它不仅提高了学习算法的效率,也为处理和优化代码提供了强大的辅助功能。
recommend-type

管理建模和仿真的文件

管理Boualem Benatallah引用此版本:布阿利姆·贝纳塔拉。管理建模和仿真。约瑟夫-傅立叶大学-格勒诺布尔第一大学,1996年。法语。NNT:电话:00345357HAL ID:电话:00345357https://theses.hal.science/tel-003453572008年12月9日提交HAL是一个多学科的开放存取档案馆,用于存放和传播科学研究论文,无论它们是否被公开。论文可以来自法国或国外的教学和研究机构,也可以来自公共或私人研究中心。L’archive ouverte pluridisciplinaire
recommend-type

【IT设备维保管理入门指南】:如何制定有效的维护计划,提升设备性能与寿命

![【IT设备维保管理入门指南】:如何制定有效的维护计划,提升设备性能与寿命](https://docs.plesk.com/en-US/onyx/administrator-guide/images/78798.webp) # 摘要 本文全面探讨了IT设备维保管理的各个方面,从理论基础到实践案例,再到技术革新和未来展望。首先概述了维保计划的重要性,强调了其在延长设备生命周期和提升性能稳定性方面的作用。接着,文中详细论述了维保计划的制定原则,包括预防性维护、设备分类及成本效益分析等。通过分析不同行业的实践案例,本文揭示了成功维保计划的关键因素,并提出了效果评估与改进的策略。随后,探讨了性能监
recommend-type

python爬取网页链接,url = “https://koubei.16888.com/57233/0-0-0-0”

在Python中,使用如`requests`库来发送HTTP请求并抓取网页链接是比较常见的做法。以下是如何使用`requests`和BeautifulSoup库(用于解析HTML)来爬取给定URL上的信息: 首先,确保已安装`requests`和`beautifulsoup4`库,如果未安装可以使用以下命令安装: ```bash pip install requests beautifulsoup4 ``` 然后,你可以编写以下Python脚本来爬取指定URL的内容: ```python import requests from bs4 import BeautifulSoup # 定义要
recommend-type

掌握Web开发:Udacity天气日记项目解析

资源摘要信息: "Udacity-Weather-Journal:Web开发路线的Udacity纳米度-项目2" 知识点: 1. Udacity:Udacity是一个提供在线课程和纳米学位项目的教育平台,涉及IT、数据科学、人工智能、机器学习等众多领域。纳米学位是Udacity提供的一种专业课程认证,通过一系列课程的学习和实践项目,帮助学习者掌握专业技能,并提供就业支持。 2. Web开发路线:Web开发是构建网页和网站的应用程序的过程。学习Web开发通常包括前端开发(涉及HTML、CSS、JavaScript等技术)和后端开发(可能涉及各种服务器端语言和数据库技术)的学习。Web开发路线指的是在学习过程中所遵循的路径和进度安排。 3. 纳米度项目2:在Udacity提供的学习路径中,纳米学位项目通常是实践导向的任务,让学生能够在真实世界的情境中应用所学的知识。这些项目往往需要学生完成一系列具体任务,如开发一个网站、创建一个应用程序等,以此来展示他们所掌握的技能和知识。 4. Udacity-Weather-Journal项目:这个项目听起来是关于创建一个天气日记的Web应用程序。在完成这个项目时,学习者可能需要运用他们关于Web开发的知识,包括前端设计(使用HTML、CSS、Bootstrap等框架设计用户界面),使用JavaScript进行用户交互处理,以及可能的后端开发(如果需要保存用户数据,可能会使用数据库技术如SQLite、MySQL或MongoDB)。 5. 压缩包子文件:这里提到的“压缩包子文件”可能是一个笔误或误解,它可能实际上是指“压缩包文件”(Zip archive)。在文件名称列表中的“Udacity-Weather-journal-master”可能意味着该项目的所有相关文件都被压缩在一个名为“Udacity-Weather-journal-master.zip”的压缩文件中,这通常用于将项目文件归档和传输。 6. 文件名称列表:文件名称列表提供了项目文件的结构概览,它可能包含HTML、CSS、JavaScript文件以及可能的服务器端文件(如Python、Node.js文件等),此外还可能包括项目依赖文件(如package.json、requirements.txt等),以及项目文档和说明。 7. 实际项目开发流程:在开发像Udacity-Weather-Journal这样的项目时,学习者可能需要经历需求分析、设计、编码、测试和部署等阶段。在每个阶段,他们需要应用他们所学的理论知识,并解决在项目开发过程中遇到的实际问题。 8. 技术栈:虽然具体的技术栈未在标题和描述中明确提及,但一个典型的Web开发项目可能涉及的技术包括但不限于HTML5、CSS3、JavaScript(可能使用框架如React.js、Angular.js或Vue.js)、Bootstrap、Node.js、Express.js、数据库技术(如上所述),以及版本控制系统如Git。 9. 学习成果展示:完成这样的项目后,学习者将拥有一个可部署的Web应用程序,以及一个展示他们技术能力的项目案例,这些对于未来的求职和职业发展都是有价值的。 10. 知识点整合:在进行Udacity-Weather-Journal项目时,学习者需要将所学的多个知识点融合在一起,包括前端设计、用户体验、后端逻辑处理、数据存储和检索、以及可能的API调用等。 总结来说,Udacity-Weather-Journal项目是Udacity Web开发纳米学位课程中的一个重要实践环节,它要求学习者运用他们所学到的前端和后端开发技能,完成一个具体的Web应用程序项目。通过完成这样的项目,学习者能够将理论知识转化为实践经验,并为他们未来在IT行业的职业发展打下坚实的基础。