fonts

How to specify bold font in VS Code editor?

不想你离开。 提交于 2020-06-25 07:58:51
问题 How to specify a bold font in VS Code's settings.json ? For example, I have Envy Code R and Envy Code R Bold (exact names shown in windows' font viewer) installed on my windows machine, and while "editor.fontFamily": "Envy Code R" setting works fine, "editor.fontFamily": "Envy Code R Bold" doesn't work (a fallback font is used instead). Is that possible to do at all? There are no any other font settings like fontWeight or fontStyle . I also tried specifying other fonts with bold variants to

Add font to R that is not in extrafonts library

安稳与你 提交于 2020-06-23 05:59:19
问题 After installing R's extrafonts library, and checking what fonts it had to offer, it came up with this list: [1] ".Keyboard" "System Font" "Andale Mono" "Apple Braille" "AppleMyungjo" [6] "Arial Black" "Arial" "Arial Narrow" "Arial Rounded MT Bold" "Arial Unicode MS" [11] "Batang" "Bodoni Ornaments" "Bodoni 72 Smallcaps" "Bookshelf Symbol 7" "" [16] "Brush Script MT" "Calibri" "Calibri Light" "Cambria" "Cambria Math" [21] "Candara" "Comic Sans MS" "Consolas" "Constantia" "Corbel" [26]

Font resource could not be retrieved

独自空忆成欢 提交于 2020-06-22 11:17:25
问题 I'm using compileSdk and targetSdk version 27 and in last release I used new font resource feature for my project but after a day I got 3 crashes for this line of code Typeface typeface = ResourcesCompat.getFont(this, R.font.my_font); and the crash report says it's because of android.content.res.Resources$NotFoundException and Font resource could not be retrieved. All 3 crashes happened for users with android version 5.1.1 . Is this a bug in support library or I'm doing something wrong? 回答1:

wpf: change font size for WebBrowser control

你。 提交于 2020-06-18 11:58:45
问题 How to do this? 回答1: public IHTMLDocument2 Document { get { return webBrowser.Document as IHTMLDocument2; } } ... Document.execCommand("FontSize", false, doubleValue.ToString()) This shold help 回答2: Right way for WPF: using mshtml; //reference to COM object "Microsoft HTML Object Library" ... var doc = web.Document as HTMLDocument; if (doc != null) { doc.execCommand("SelectAll", false, null); doc.execCommand("FontSize", false, 5); doc.execCommand("Unselect", false, null); } additional

Matplotlib change font size within table (just header) - python

你离开我真会死。 提交于 2020-06-17 03:37:25
问题 I'd like for the headers of the columns to have a smaller font than the values in the cells so that they're readable (I'll show what I mean in an attached jpeg). Right now everything has the same font size. Example of the table code: fig = plt.figure(figsize=(11, 8.27)) ax = fig.add_subplot(111) ax.axis('off') index_length = len(well_data_table.index) table_1 = well_data_table.iloc[0:30] table_2= well_data_table.iloc[30:60] table_3 = well_data_table.iloc[60:-1] q='lightsalmon' colors3 = [q,q

Matplotlib change font size within table (just header) - python

喜夏-厌秋 提交于 2020-06-17 03:37:23
问题 I'd like for the headers of the columns to have a smaller font than the values in the cells so that they're readable (I'll show what I mean in an attached jpeg). Right now everything has the same font size. Example of the table code: fig = plt.figure(figsize=(11, 8.27)) ax = fig.add_subplot(111) ax.axis('off') index_length = len(well_data_table.index) table_1 = well_data_table.iloc[0:30] table_2= well_data_table.iloc[30:60] table_3 = well_data_table.iloc[60:-1] q='lightsalmon' colors3 = [q,q

Matplotlib change font size within table (just header) - python

…衆ロ難τιáo~ 提交于 2020-06-17 03:37:02
问题 I'd like for the headers of the columns to have a smaller font than the values in the cells so that they're readable (I'll show what I mean in an attached jpeg). Right now everything has the same font size. Example of the table code: fig = plt.figure(figsize=(11, 8.27)) ax = fig.add_subplot(111) ax.axis('off') index_length = len(well_data_table.index) table_1 = well_data_table.iloc[0:30] table_2= well_data_table.iloc[30:60] table_3 = well_data_table.iloc[60:-1] q='lightsalmon' colors3 = [q,q

How can I add to the list of font substitutions in pdfbox 2.0.7?

谁都会走 提交于 2020-06-16 17:36:13
问题 I'm using FontMapper.getTrueTypeFont() to find available fonts by name in pdfbox 2.0.7. This has a feature to map fonts (by name) so that if I ask for Symbol and my system only has SymbolMT it will return that as a substitute. But the default implementation doesn't map the other way. My system has Symbol installed, but if I try to get SymbolMT it returns Helvetica as the best match (which doesn't work very well). The underlying FontMapperImpl class has an addSubstitute() method that lets you

How can I add to the list of font substitutions in pdfbox 2.0.7?

我是研究僧i 提交于 2020-06-16 17:36:04
问题 I'm using FontMapper.getTrueTypeFont() to find available fonts by name in pdfbox 2.0.7. This has a feature to map fonts (by name) so that if I ask for Symbol and my system only has SymbolMT it will return that as a substitute. But the default implementation doesn't map the other way. My system has Symbol installed, but if I try to get SymbolMT it returns Helvetica as the best match (which doesn't work very well). The underlying FontMapperImpl class has an addSubstitute() method that lets you

How to set font from file in Pango and Mono

你说的曾经没有我的故事 提交于 2020-06-16 03:03:13
问题 I have simple application that prints text and determines its size in pixels. static void Main(string[] args) { Application.Init(); var screen = Screen.Default; var layout = new Pango.Layout(PangoHelper.ContextGetForScreen(screen)); layout.FontDescription = new FontDescription(); layout.FontDescription.Family = "Times New Roman"; layout.FontDescription.Size = Units.FromPixels(18); layout.SetText("My Text"); int width; int height; layout.GetPixelSize(out width, out height); Console.WriteLine("