LoginSignup
44
40

More than 5 years have passed since last update.

ヒラギノ角ゴ W1/W2とUIFont

Last updated at Posted at 2013-12-10

iOS 7にはヒラギノ角ゴ W1/W2が隠されており、CSSで表示する事が出来るとのこと。
http://keagelog.blogspot.jp/2013/10/ios-7-w1w2-css.html

同様に UIFont でも PostScript 名を指定してやると出てくる。

    label1.font = [UIFont fontWithName:@".HiraKakuInterface-W1" size:30];
    label2.font = [UIFont fontWithName:@".HiraKakuInterface-W2" size:30];
    label3.font = [UIFont fontWithName:@"HiraKakuProN-W3" size:30];
    label4.font = [UIFont fontWithName:@"HiraKakuProN-W6" size:30];

検索してもCSSの話ばかりなので、「CSSだけじゃないよ」ということで。

追記
これらのヒラギノは ProN で、Pro は入っていないようです。

8af8237a-10f8-d7e8-5d76-101c75eb7473.png

44
40
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
44
40