android - 安卓字体?

标签 android css font-face

Android 可以使用@fontface 吗?如果是这样,谁能解释我下面哪里出了问题?

@font-face {
font-family: 'BloklettersPotlood';
src: url('fonts/Blokletters-Potlood-webfont.eot');
src: url('fonts/Blokletters-Potlood-webfont.eot?#iefix') format('embedded-opentype'),
     url('fonts/Blokletters-Potlood-webfont.woff') format('woff'),
     url('fonts/Blokletters-Potlood-webfont.ttf') format('truetype'),
     url('fonts/Blokletters-Potlood-webfont.svg#BloklettersPotlood') format('svg');
font-weight: normal;
font-style: normal;

}

干杯 保罗

最佳答案

Android 确实支持@font-face。我使用相同的语法并且效果很好(无处不在)。 您是否尝试过使用其他字体?

顺便说一句。如果您尝试将字体应用于任何标题,请确保在 h1/h2/h3/hx 样式声明中设置 font-weight: normal;

关于android - 安卓字体?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8185567/

相关文章:

Android-以编程方式删除SD卡

android - 自动完成库 - 跨浏览器/移动兼容

html - margin-top 重叠元素在顶部

css - 为不同的操作系统分配不同的字体

css - @font-face 在 Chrome (Windows) 中不显示

android - 平滑滚动 TextView

java - 使用大纲文本字段的工具栏问题

html - 如何更改版 block 背景?

html - 如何在不适合视口(viewport)的绝对定位的 div 上启用滚动?

html - @font-face 样式不起作用