Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

monospace

How to get monospaced numbers in UILabel on iOS 9

August 26, 2023 by Tarik

This is now available in UIFont since iOS 9: + (UIFont *)monospacedDigitSystemFontOfSize:(CGFloat)fontSize weight:(CGFloat)weight NS_AVAILABLE_IOS(9_0); eg: [UIFont monospacedDigitSystemFontOfSize:42.0 weight:UIFontWeightMedium]; or in Swift: UIFont.monospacedDigitSystemFont(ofSize: 42.0, weight: UIFontWeightMedium)

Categories ios Tags ios, ios9, monospace, uifont, uilabel Leave a comment

Specify monospace font in `menu`

May 18, 2023 by Tarik
Categories r Tags fixed-width, monospace, r Leave a comment

“font-family: monospace, monospace”

February 18, 2023 by Tarik

You are right. The font-family: monospace, monospace; declaration is a simple hack/workaround for some browsers which tend to reduce the font size of monospace fonts. More info on this Github issue: https://github.com/necolas/normalize.css/issues/519#issuecomment-197131966

Categories css Tags css, monospace, normalize-css Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa