简体   繁体   English

如何使日文字体(Ipaex gothic / mincho)加粗?

[英]How to make japanese character font (Ipaex gothic / mincho) bold?

I've installed the IPAex Gothic and IPAex Mincho fonts and can display Japanese characters.我已经安装了IPAex GothicIPAex Mincho字体并且可以显示日语字符。 I'm trying to display some Japanese characters in bold.我正在尝试以粗体显示一些日语字符。

Now I want to display some of those characters in bold, but I'm failing at that.现在我想以粗体显示其中一些字符,但我没有做到。

I've tried several options with no success:我尝试了几个选项但没有成功:

    <span style="font-size: 26px; font-family: IPAexGothic, IPAexMincho; font-weight:800;">
    日本
    </span>
  
    <span style="font-size: 26px; font-family: IPAexGothic, IPAexMincho; font-weight:bold;">
    日本
    </span>

    <span style="font-size: 26px; font-family: IPAexGothic, IPAexMincho;">
    <strong>日本</strong>
    </span>

Any idea on how to get those Japanese characters displayed in bold?关于如何以粗体显示这些日文字符的任何想法?

If the font does not have any bold variant, you can't make it bold .如果字体没有任何粗体变体,则不能将其设置为bold

But... you can fake a bold font (if that's what you need to do, it's not a clean approach).但是......你可以伪造一个粗体(如果这是你需要做的,这不是一个干净的方法)。 Some things to play around with are borders and text-shadow, for example:一些可以玩的东西是边框和文本阴影,例如:

.outlined { color: white; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000 };

I've installed the IPAex Gothic and IPAex Mincho fonts and can display Japanese characters.我已经安装了IPAex GothicIPAex Mincho字体并且可以显示日语字符。 I'm trying to display some Japanese characters in bold.我正在尝试以粗体显示一些日语字符。

Now I want to display some of those characters in bold, but I'm failing at that.现在我想以粗体显示其中一些字符,但我没有做到。

I've tried several options with no success:我尝试了几个选项但没有成功:

    <span style="font-size: 26px; font-family: IPAexGothic, IPAexMincho; font-weight:800;">
    日本
    </span>
  
    <span style="font-size: 26px; font-family: IPAexGothic, IPAexMincho; font-weight:bold;">
    日本
    </span>

    <span style="font-size: 26px; font-family: IPAexGothic, IPAexMincho;">
    <strong>日本</strong>
    </span>

Any idea on how to get those Japanese characters displayed in bold?关于如何以粗体显示这些日文字符的任何想法?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM