I have an app in android creating using Xamarin.Forms which looks as required when accessibility "Font Size" & "Display Size" setting is set to "Default". I am using NamedSize.Small and NamedSize.Medium in most places.
But when I change both of them to maximum possible value then size of labels are getting increased by 3-4 times. And also font size get increase if I changed Font Size or display size. So I would like to know whether there is any option where I can manage the ratio I want to change when "Font Size" & "Default Size" is changed. And whether there is any properties which suggest which of the two is changed and how much. Or may be disable "Default Size" changes and only allow "Font Size" to work.
I know there is Density & ScaledDensity in DisplayMetrics class. But can't find how it work and how to use those properties.
Same applies to iOS when accessibility setting in that. So far I have only found that there is a property EnableAccessibilityScalingForNamedFontSizes to disable accessibility scaling for named font sizes
Related
I have left my computer on overnight and in the morning I have noticed, that the font of the windows in QtCreator is significantly bigger as it was, though not everywhere. The text editor, the menu and the side panels are shown with the usual font size (see the first screenshot). I have also noticed, that this change affects other Qt programs, as the Maintenance tool and QtLinguist.
Legend: Red - huge font, should be reset. Green - font is as it should be.
The font size of all other installed programs is unchanged. Just in case I have checked the display settings of Windows and the scale is at 100%, where it was.
Note: I have tried deleting the settings under user/AppData..., but it didn't help.
How to reset the font back to normal?
for changing the size of the font in the source code you can use the short cuts (with the editor focused)
to zoom in: "ctrl" and "+"
to zoom out: "ctrl" and "-"
for the environment the you can set the environment variable
export QT_SCALE_FACTOR=1.5
I have a web page with text and an image. I want to place the text very precisely over the image.
I have discovered that with the font I am using, when viewing the page on windows, everything gets shifted down by about 4px. On Mac, iphone and android, it is placed correctly.
This does not happen if I use Courier New as the font, so I know that the problem is the font, however I have no choice but to use this font.
Is there a way to compensate for this purely in CSS, or do I need a javascript callback to detect windows and add a class so I can deal with it?
first of all, I would try tuning ling height, if that did not work, then I think you need to edit the font itself, you can do that using this site: https://transfonter.org/, uploading your font file and convert it to the formats you use and the important point is to check this toggle button, it adjusts some properties in the font so it has similar experience on different operating systems
if that did not work, there is a program called fontforge it gives you the ability to change font metrics, for more info you could check this question
Font Rendering / Line-Height Issue on Mac/PC (outside of element)
I am developing a Qt QML based application that runs on both Desktop and Mobile operating systems. I am having problems with proper fonts and components scaling- what does look good on large, desktop monitor is barely visible on a mobile phone, even though the scaling is the same.
I was wondering, what is the proper approach for this problem? I would like to run the same code on all platforms. For example, is there a way for a font to stay the same size (in mm or inches), no matter the screen resolution and size?
In QML I am always setting the font.pointSize property. It is scaled evenly, but because of that, the font are barely visible on mobile devices.
Have you tried font.pixelSize property yet?
I think this will be good for you.
"Sets the font size in pixels.
Using this function makes the font device dependent. Use pointSize to set the size of the font in a device independent manner."
https://doc.qt.io/qt-5/qml-qtquick-text.html#font.pixelSize-prop
We use custom icon font (inhouse font generated to icons with icomoon, or something similiar) in our webapp. I can set their size with font-size css property. but sometimes I need to adjust more proprties: for example increase the width or the height of the icon/font etc. Is there a way to do this with css/js?
I'll be glad for help with this, generating a specific font for each mini used isn't a path I would like to choose
font-stretch was supposed to do that but is not included in any current css standard and not supported by any browsers. I think you will have to create seperate icons for that case, sorry.
I did a Google Search trying to find the appropriate css descriptors, and stumbled upon this thread. Maybe it may help: Is it possible to change the font height, not just the line-height?
I'm using Infragistics NetAdvantage for Win Client 2010 Vol. 3.
I added a PopupGalleryTool to a ribbon: the tool's Preferred Size property is set to Large, and the gallery shows a list of 24x24 icons , grouped by category.
What I'm looking for is: how can I customize groups height? I noticed that when Preferred Size is set to Normal, groups are smaller. I would like to have a smaller height also with "Large" Preferred Size. Is it possible?
Here is a screenshot:
The difference in heights actually seems like a bug. You should probably submit it to Infragistics support: http://www.infragistics.com/support/submitrequest.aspx
Currently, the only way to control the height of the group header is to change the font size. This can be done by setting the PopupGalleryTool.GroupSettings.HeaderAppearance.FontData.SizeInPoints to a custom value.