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?
Related
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.
I've been trying to set different font sizes for different iPhone sizes. I researched a lot about this but couldn't find the proper way of doing it. All I found is how to change uilabel text size in different iPhones which shows how to change the font size based on hard coded values that too programmatically. I'm looking for changing the font size using storyboard i.e adaptive layout. Another popular answer I found was to add wC hAny in storyboard. But, this can only be used to set the different font size for an iPad and iPhone(not for different iPhone sizes). Any help would be appreciated.
One way to do this is to set the minimum font size for the label. Then set your constraints so when the labels get squished in a tighter area the font will shrink to fit on the screen.
In IOS, we have height and font size for UI label.
When I add a uilabel to the screen, I see a default height and font for it and height is always bit more than the font size to take care of ascenders and descenders. But when I increase the font size in design time, the height still remains at where it was when it was added to the screen. So, how to I decide during design time what is the appropriate height to be set if I change the font size to what I want.
Edit the text of the label and press enter, it will take it's size
Click your label in the canvas so that you get its resize handles. Then, from the menu bar, choose Editor > Size to Fit Content. The default shortcut is ⌘=.
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?
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.