What is a monospace font in iOS?

前端 未结 10 1294
半阙折子戏
半阙折子戏 2020-12-02 19:41

I want a monospace font for my UILabel in my iOS application.

Unfortunately, I could not find one. Even \"American Typewriter\" was not actually monospaced. What is

10条回答
  •  眼角桃花
    2020-12-02 20:36

    Expanding upon @reggie-pinkham's answer, I built this JS Bin for folks to use as a live test page; to save future reader's some time, here's a few screen shots using iOS Simulator on Mavericks:

    iPad Air, iOS 8.1

    ipad-air-ios-8.1

    iPhone 6 plus, iOS 8.1

    iphone-6-plus-ios-8.1

提交回复
热议问题