font-size

Change font size via UiBarButtonItem in UITextView, works just once

无人久伴 提交于 2019-12-11 15:28:15
问题 I have UiTextView where I want change font size (increase), here code -(void)biggerFont:(UIBarButtonItem *) item { CGFloat i = [UIFont systemFontSize]; textView.font = [UIFont fontWithName:@"Tahome" size:i]; i+=2; } But it works just once, if you push once and after that again - fon size won't change. Help me please 回答1: It's easy you are not saving the state of i persistently. Everytime you set i to the same value. After the method has been run through i is discarded cause it only exists in

How can change font size in UWP TimePikcerFlyout?

谁都会走 提交于 2019-12-11 15:17:07
问题 I want to make the font size of TimePickerFlyout bigger, It's Possible? 回答1: The area that you pointed is LoopingSelector of TimerPicker. And the default font size is 15 in LoopingSelector style like the following. <Style TargetType="LoopingSelector"> <Setter Property="ShouldLoop" Value="True" /> <Setter Property="UseSystemFocusVisuals" Value="{StaticResource UseSystemFocusVisuals}" /> <Setter Property="ItemTemplate"> <Setter.Value> <DataTemplate> <StackPanel VerticalAlignment="Center">

IE font size decrease does not cause select box height to decrease

末鹿安然 提交于 2019-12-11 14:12:58
问题 I have a font resize function on my page which increases the font size via javascript for the entire page. This works fine in most browsers except IE. When decreasing the font size after increasing it, the select boxes new height does not decrease, even though the font size is decreasing on it. Instead the smaller font appears to be padded with white space. Any ideas as to what IE is doing here, and a work around? function setFontSize(newFontSize) $('select').css("font-size", newFontSize); }

How to change default FontSize unit

試著忘記壹切 提交于 2019-12-11 12:36:00
问题 I'm playing around in the new version of Visual Studio 2015 (Community) . I notice that that in the XAML designer, the default unit qualifier for FontSize is Pt (point) . However I want to have Px (pixel) as a default (like the previous VS editions). I looked around in the settings of VS, but i can't seem to find any option to change this. Anyone has an idea how to change this? 回答1: WPF defaults to px. To force WPF to use a different unit of measurement, just append the unit abbreviation to

Calculating the logical font size

北城余情 提交于 2019-12-11 12:06:47
问题 Many examples show the following way of calculating a font's logical size from its point size, which is also how my code has been doing it for years: SizeLogical = -MulDiv(SizePt, GetDeviceCaps(hdc, LOGPIXELSY), 72); But I recently noticed that examples like this one use a factor of 96 instead of 72. Is this because the monitors' physical resolution has increased over the years, so they display 96 pixels per inch as opposed to typography's classic 72 points per inch? If so, the correct

Increasing or decreasing control fontsize on runtime according to Slider(WPF component) value

本秂侑毒 提交于 2019-12-11 10:53:38
问题 I want to increase or decrease font size of controls such as window, treeView, ribbon menu etc that are contained by main window. I have a font size slider create method and I want to acces all of Control and TextBlock by using visualtree helper and increase or decrease their font size according to slider value. Methods are below; private StackPanel CreateFontSizeSlider() { StackPanel fontSizePanel = new StackPanel(); fontSizePanel.Orientation = Orientation.Horizontal; Slider fontSizeSlider =

Increasing and Decreasing the font sizes of the android application by user selection

烂漫一生 提交于 2019-12-11 09:49:10
问题 Actually i want to specify the custom text size in my application by user selection. Below is a figure that demonstrate the idea/theme So, for that i have an idea to achieve this. I will create a dialog in the view which having the user input options to increase/ decrease the font size. after changing the font size, i vll apply the same to the application. (+) & (-) signs will work to change the font size as well as seek bar too. Here my question is is there any specific font style/ size

WPF Windows program displays in large fonts but only on one PC

99封情书 提交于 2019-12-11 07:31:26
问题 I have a WPF application rendering fonts to a larger size than I expect. The catch is that only WPF applications I write seem to have this effect, and the problem happens only on one computer. The effect also happens with all WPF programs I write (not just one), and all windows exhit the effect. I am using Visual Studio 2008 with .NET 3.5 SP1; all programs written in WPF. The operating system is Windows XP with the latest service packs. The screen resolution is 1680x1050. Windows and buttons

Is there a way to up-size the font with CSS to fit the screen?

北慕城南 提交于 2019-12-11 06:44:51
问题 I'm thinking about improving the front page of the OpenBSD ports web-site, which lists about 71 categories of the ports. My idea is to use a couple of columns (maybe ul {-moz-columns: 9em;} also with a limit to at most 8 columns at 89em and above, @media (min-width: 89em) {ul {-moz-columns: 8;}} , effectively specifying that there should be at most 8 columns with a minimum width of 9em ), and add some padding / margin to each list item listing a port, but on bigger screens, this might occupy

fullCalendar Font size

孤人 提交于 2019-12-11 06:28:34
问题 I am having issues setting the calendar font sizes to be smaller. I have changed setting a container div font size, no effect. I have also changed the fullCalender.css font from 1em to 0.5em and to a px size but the calendar text stays the same. 回答1: This is quite the blast from the past, but I originally found this looking for a solution. I just wanted to change the font size of the elements in the table (date headers, time sidebar). The following worked for me: th.ui-widget-header { font