微信小程序 引用字体

方法一

官方

方法二

1.下载 安装footmin

2.字体下载 ifont

3.转换所需词汇:微信小程序 引用字体

4.代码引用:

复制文件中的代码:
微信小程序 引用字体
为(只保留最长的就可以):

@font-face {
    font-family: "RuiZiChaoPaiHaoHengHeiJian-TeHei-2";    
    url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAAKAIAAAwAgT1MvMq8zEIAAAACsAAAAYGNtYXDFu6W9AAABDAAAAcJnbHlmiQYPawAAAtAAAAlwaGVhZBwrg2gAAAxAAAAANmhoZWEHdQNWAAAMeAAAACRobXR4BRYBJgAADJwAAAAkbG9jYRKMFOAAAAzAAAAAJG1heHAAGABGAAAM5AAAACBuYW1lgRSPoAAADQQAAAZ6cG9zdPENjp8AABOAAAAAxAAEA+gDhAAFAAgCigJYAAAASwKKAlgAAAFeADIBIQAAAgEGBAAAAAAAAAAAAAMQAAAAAAAAAAAAAABSRUVKAEBT0ZmWA4T/YAEsA+gBegAEAAEAAAAAAeICvQAAACAAAAAAAAMAAAADAAAAHAABAAAAAAC8AAMAAQAAABwABACgAAAAJAAgAAQABFPRVS5d8l+FYhFnKmfcc7B1M3aEi/eNJ41PmHWYhJmW/wAAU9FVLl3yX4ViEWcqZ9xzsHUzdoSL940njU+YdZiEmZb/rDCq1KIRoH+d9JjcmCuMWIrWiYZ0FHLlcr5nmWeLZnoAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABBgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AWAFUARgBoAAcATgAKAG0AdwCVABAAfgC/AFIAGwBhAA8AiwC+AIsAoQBnAAkAlgBQAFEAbABTAPgAdwB3AHcALgByAGUAZQBqAGkALgBjAG8AbQB3AHcAdwAuAHIAZQBlAGoAaQAuAGMAbwBtAHcAdwB3AC4AcgBlAGUAagBpAC4AYwBvAG0AdwB3AHcALgByAGUAZQBqAGkALgBjAG8AbQB3AHcAdwAuAHIAZQBlAGoAaQAuAGMAbwBtAJUAEABbAFcAbwBuAHIATACMAGoAagAqAJ4A0QB7AIAALQCVAOoAcgB5AJ4A0QAAAAIAAAAAAAD/tQAyAAAAAAAAAAAAAAAAAAAAAAAAABEAEQAAAQIBAwEEAQUBBgEHAQgBCQEKAQsBDAENAQ4BDwEQAREHdW5pNTNEMQd1bmk1NTJFB3VuaTVERjIHdW5pNUY4NQd1bmk2MjExB3VuaTY3MkEHdW5pNjdEQwd1bmk3M0IwB3VuaTc1MzMHdW5pNzY4NAd1bmk4QkY3B3VuaThEMjcHdW5pOEQ0Rgd1bmk5ODc1B3VuaTk4ODQHdW5pOTk5Ng==) format("truetype"), /* chrome、firefox、opera、Safari, Android, iOS 4.2+ */  
    font-style: normal;
    font-weight: normal;
}

上一篇:Day05


下一篇:苏宁网移动端首页