font

How to change font size of NSTableHeaderCell

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to change the font size of my NSTableView within my code to allow the user to change it to their liking. I was successful by changing the font size of each NSTableCellView but failed to do so by the header cells. I was trying to do it like this let headerCell = NSTableHeaderCell() let font = NSFont(name: "Arial", size: 22.0) headerCell.stringValue = "firstname" headerCell.font = font customerTable.tableColumns[0].headerCell = headerCell The stringValue of the header cell will be set accordingly but the size does not change. How

HTML input field height different in different browsers

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Current Situation On a simple website I have an input control with a fix height where I have a text with a certain font size. I want that text to show up vertically aligned in the middle of the input field. But even though I used a reset css (link here ) and setting the -webkit-appearance to none it still is not centered. You can see that for IE the padding at the top is higher, for iOS it is even worse. There are 12 more pixels padding. Some Code HTML: <!-- time --> <input type="text" class="meeting-time" style="-webkit-appearance: none;

Hindi font with API level 15 (aka Android 4.0.2)

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a hindi content based android app and have used devangiri font from Android API 16 SDK and renamed as hindi.ttf. The text renders fine on API level 16 and 17 but simply tears apart in Android API level 15 and lower. Is there any why I can fix that without removing support for lower API levels. My code for setting textview is: Layout XML: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" xmlns:tools="http://schemas.android.com/tools" android:layout

Matplotlib xlabel in Arial with one word italicised

匿名 (未验证) 提交于 2019-12-03 01:36:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to create a matplotlib figure with an x-axis label that is in Arial font, and has one word italicised. I can create figures with x-axis labels in latex-font with one word italicised; I can also create figures with x-axis labels in Arial, as long as I have either the entire label italicised or the entire label normal; but I can't get part of the xlabel in Arial italicised and the other part in arial normal. I'm mostly trying permutations of the following code: from matplotlib import pyplot as plt import numpy as n import matplotlib

Add font awesome icon to custom add to cart button in Woocommerce 3

匿名 (未验证) 提交于 2019-12-03 01:36:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I changed the style of my Add To Cart with the help of LoicTheAztec, but how to add a font awesome icon in front of button text using the followin code // For Woocommerce version 3 and above only add_filter ( 'woocommerce_loop_add_to_cart_link' , 'filter_loop_add_to_cart_link' , 20 , 3 ); function filter_loop_add_to_cart_link ( $button , $product , $args = array () ) { if ( $product -> is_in_stock () ) return $button ; // HERE set your button text (when product is not on stock) $button_text = __ ( 'Not available' , 'woocommerce' );

How to change Neovim font?

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: VIM contains a 'set guifont' option to change the font. Neovim does not support this option , so I am wondering if it's possible to change the font Neovim uses in the Terminal? 回答1: Just change the font in your terminal emulator's preferences. Terminal vim behaves the same way. Only GUI clients like Gvim or macvim use the set guifont option. 回答2: This is not for a terminal, but still it might be useful to someone. For Neovim-Qt GUI client, you can change the font by Ctrl + mouse scroll if you put the following to ginit.vim : let s:fontsize =

C# WPF Textblock different font color per line

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to make each line of text on a WPF textblock display in a different color. I have the following code which makes the entire block's font color purple because that's the last color it's set to. How can I make it so each potion is displayed in a different color? private void btnShowPotions_Click(object sender, RoutedEventArgs e) { tbPotionInfo.Foreground = Brushes.Green; tbPotionInfo.Text = smallPotion.Name + "(" + smallPotion.AffectValue + ")\r\n"; tbPotionInfo.Foreground = Brushes.Blue; tbPotionInfo.Text += mediumPotion.Name + "(

Change the font size in the RStudio user interface (not graphs etc.) under Linux

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This is not a question about changing the font size in graphs produced using RStudio. I already know how to do that. I use RStudio under Linux on a MacBook Pro with a 'retina' display. I use KDE as my window manager. I can (and do) enlarge the default font size in the user interface of other programs in KDE. I increase the font size for the user interface in Firefox and Thunderbird using program specific tools. How do I increase the font size in the user interface - not the console, which is easy [Options -> Appearance -> font size], but,

iText, What&#039;s going on with Font, BaseFont and createFont()?

匿名 (未验证) 提交于 2019-12-03 01:33:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: There is a lot of mystery to me about what is going on with font and basefont. Especially when it comes to the constructor. The iText website gives this line as example code for new fonts BaseFont unicode = BaseFont.createFont("c:/windows/fonts/arialuni.ttf", BaseFont.IDENTITY_H, BaseFont.EMBEDDED); I can get this call to work: BaseFont bf = BaseFont.createFont(BaseFont.COURIER, BaseFont.CP1257, BaseFont.EMBEDDED); But if I replace BaseFont.CP1257 with say BaseFont.HELVETICA then it doesn't work and I get a page that says "failed to load pdf

SCSS variable class name

匿名 (未验证) 提交于 2019-12-03 01:33:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: On my website, I'm constantly doing style="font-size: #ofpx;". However, I was wondering if there's a way to do it with scss so that, when I declare a class, it would also change the font size. For example: <div class='col-lg-4 font-20'>whatever here</div> and this would change my font-size to 20. If I did font-30, it would change my font-size to 30 and etc... What I have so far: .font-#{$fontsize} { font-size: $fontsize; } 回答1: This can't be done for arbitrary sizes. The nature of SCSS is that is needs to be flattened down to CSS before it