Is there any directives to change Angular material icon size? - angular-material

I am using angular material for icons,
<mat-icon>subdirectory_arrow_right</mat-icon>
default size of icon is defined by the framework as 24px, Is there any directive to resize it? like how we have in font awesome - lg/sm/md

In v6.x you can use the inline property to have your icons match font size with their parent elements. Otherwise, there is no built-in MatIcon feature for specifying the icon size when using the default icon font set. You can easily add a style property e.g. style="font-size: 16px;" or you could defined your own class to do that. You might also want to set width and height since like font-size, those default to 24.

Related

Font Size Issue with Delphi ActionMainMenuBar and CustomTitleBar

I am not able to change the menu items font size when I am using ActionMainMenuBar with CustomTitleBar
I can change the font size by using Screen.MenuFont.Size but this setting is impacting other control across the product whereas I only want to change the size of menus added in ActionMainMenuBar
Is there a way I can only change the Font Size of File,Edit,Audit etc in ActionMainMenuBar?

Set Device-Specific font in Xcode 8.2

i want to set Device-Specific font of UILabel and UIButton using storyboard.
Any one can help me to achieve this?
You can set Label Font Size based on Device using Storyboard. To make it you have follow some steps like below.
First go to the Attributes Inspector panel in storyboard.
Click on this + Symbol of Font Property.
Now set the variations for other devices, Like Compact Width and Compact Height or etc. Set it based on your requirements.
Finally, it will look like,
you can set this property multiple times as per your device specifications like iPhone or iPad etc. You need to define only variations so it will automatic set font size and fonts also.
Hope you get it.

iOS swift change padding of my custom font in application

I am working on custom font,IRANSansMobile_Bold. This font unwanted bottom padding. can I change this bottom padding for entire application I have already use another font now it is not possible for me to add edgeInset in every control

Font Size Constraints in XCode6's Interface Builder With Custom Fonts

I'm using XCode6's Interface Builder with different size classes, and want to create a UILabel with a custom font that has a different font size constraint for different screen sizes. According to apple:
https://developer.apple.com/library/ios/recipes/xcode_help-IB_adaptive_sizes/chapters/ChangingtheFontforaSizeClass.html#//apple_ref/doc/uid/TP40014436-CH12-SW1
you should be able to accomplish this by clicking the + icon next to the font field in the property inspector and choosing different font sizes for the different size classes.
This seems to work perfectly well for me when using system or other fonts that already come embedded in XCode, however, when I use a custom font that I've manually embedded in my project, it no longer respects the constraints and defaults back to the system font and the default font size.
Is this a bug with XCode, or am I doing something wrong?

Changing font sizes with size classes in Interface Builder

The new size classes for auto layout in Xcode is great, but is it also possible to change other things than constraints like font size using size classes?
This is actually quite easy once you find the correct button. There is a small '+' sign to the left of the font select control in the inspector. Press it and choose the size class you want. Then, select different font properties for that size class.

Resources