Font size rendering inconsistencies on an iPhone

To improve on Lukasz’s idea slightly, try using the following rule in your CSS: body { -webkit-text-size-adjust: 100%; } Using the value ‘100%’ instead of ‘none’, allows all other Webkit-based browsers to still resize text when using the zoom function while still preserving your original font size. This issue is arising only in modern browsers … Read more

How to set a custom font to the title in toolbar android

Since android.support.v7.appcompat 24.2 Toolbar has method setTitleTextAppearance and you can set its font without external textview. create new style in styles.xml <style name=”RobotoBoldTextAppearance”> <item name=”android:fontFamily”>@font/roboto_condensed_bold</item> </style> and use it mToolbar.setTitleTextAppearance(this, R.style.RobotoBoldTextAppearance);

Android – How to change bottom navigation bar text’s font family

add the font file in the res/font/ folder to bundle fonts as resources then You can change it using style resources. In your styles.xml: <style name=”Widget.BottomNavigationView” parent=”Widget.Design.BottomNavigationView”> <item name=”fontFamily”>@font/your_font</item> </style> Then apply it as a theme in your view: <android.support.design.widget.BottomNavigationView … android:theme=”@style/Widget.BottomNavigationView” /> Just checked on my app, it works fine. reference: https://developer.android.com/guide/topics/ui/look-and-feel/fonts-in-xml.html#fonts-in-code

How to use new San Francisco font in iOS 9?

In iOS 9 it is the system font, so you could do: let font = UIFont.systemFontOfSize(18) You can use the font name directly, but I don’t think this is safe: let font = UIFont(name: “.SFUIText-Medium”, size: 18)! You can also create the font with specific weight, like so: let font = UIFont.systemFontOfSize(18, weight: UIFontWeightMedium) or … Read more

Google Web Fonts on HTTPS pages on Chrome

Create a schema agnostic url Change http://fonts.google… to //fonts.google… Drop the http: or https: from the front, the browser will use whichever schema you’re currently using on the site. You may request resources using https from http, but not the other way round. An alternative to the above solution (and probably best practice) is to … Read more

How to use Roboto font in android Project [duplicate]

You can download the Roboto font from here: https://fonts.google.com/specimen/Roboto. [Updated 2020-01-28] You can do it the conventional way by using TypeFace, like this: Typeface typeface = Typeface.createFromAsset(getAssets(), fontName); textView.setTypeface(typeface); Note: The above will have to be done in every Activity. Alternatively, if, for example, you want to apply the Roboto font to all the TextViews … Read more

How do I add a Google Font to a VueJS Component?

The fastest way is to import the font in a CSS file, for example App.css, if all components should have it: @import url(‘https://fonts.googleapis.com/css?family=Roboto+Condensed’); html, body { font-family: ‘Roboto’, sans-serif; } #app { font-family: ‘Roboto’, sans-serif; } The import statement is also shown by Google Fonts. Select your fonts, click on Embed and then @import at … Read more

Setting BOLD font on iOS UILabel

It’s a fishy business to mess with the font names. And supposedly you have an italic font and you wanna make it bold – adding simply @”-Bold” to the name doesn’t work. There’s much more elegant way: – (UIFont *)boldFontWithFont:(UIFont *)font { UIFontDescriptor * fontD = [font.fontDescriptor fontDescriptorWithSymbolicTraits:UIFontDescriptorTraitBold]; return [UIFont fontWithDescriptor:fontD size:0]; } size:0 means … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)