font

text-align: justify; not working with wkhtmltopdf

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Good day! I'm creates PDF docs from HTML using wkhtmltopdf library. I used svg font according to this issue wkhtmltopdf custom font letter spacing I used custom font, added it by @font-face. All works fine for me, except one thing: text-align: justify is not working for some reason. In html text is aligned as expected, but not in PDF. Is anyone know how to fix this issue? UPD : Added CSS and HTML example <style type="text/css"> @font-face{ font-family:'source_sans_prolight'; src: url('/font/sourcesanspro-light-webfont.svg') format('svg');

How to use percentage for font in different screen size

匿名 (未验证) 提交于 2019-12-03 00:56:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have the following DIVs: <div class="tckLeftHolder"> <div class="tckLeftContents"> <span>URGENT CARE WAIT</span> </div> </div> CSS: .tckLeftContents { text-align: center; width: 90%; padding: 0 0 0 10%; height: 35px; overflow: hidden; } .tckLeftHolder { float: left; width: 25%; height: 35px; line-height: 17px; vertical-align: middle; background: #EA7C30; border-top-left-radius: 10px; border-bottom-left-radius: 10px; color: #FFFFFF; font-family: Verdana; font-size: 10px; overflow: hidden; text-align: center; box-shadow: inset 0 -1px 1px

Google Maps visual refresh - how do disable font Roboto in InfoWindow

匿名 (未验证) 提交于 2019-12-03 00:52:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: Just trying the new option google.maps.visualRefresh = true in the new version 3.12 of the Google maps javascript API. And although the map new look is great, now the text in my InfoWindows is using the font size Roboto. The new InfoWindow content div CSS is: font - family : Roboto , Arial , sans - serif ; font - size : 13px ; font - weight : 300 ; This wasn't the case before and it doesn't work at all with the design of my website. Any idea how I could remove it to use the default font define in my body ? 回答1: You can still use

How to select child element inside first, second or third html element with CSS classes?

匿名 (未验证) 提交于 2019-12-03 00:52:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to select anchor tags in CSS.For the purpose in the following html document I did the same. My html document is here: <div class="first"> <center><a href="http://www.google.com">The first link </a></center> </div> <div class="second"> <center><a href="http://www.fb.com">The second link</a></center> </div> <div class="third"> <center><a href="http://www.stackoverflow.com">The third link</a></center> </div> Now I want to select all of a tags. I tried in this way: body a:first-child:hover//The first child { font-size:30px; color:yellow;

IE9 - CSS3111: @font-face encountered unknown error

匿名 (未验证) 提交于 2019-12-03 00:52:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I embed three Google Fonts from http://www.google.com/webfonts (Dosis, Open Sans, Lato) And they all work fine except IE9 where it returns: CSS3111: @font-face encountered unknown error. 2HG_tEPiQ4Z6795cGfdivPY6323mHUZFJMgTvxaG2iE.eot CSS3111: @font-face encountered unknown error. KlmP_Vc2zOZBldw8AfXD5g.eot CSS3111: @font-face encountered unknown error. zLhfkPOm_5ykmdm-wXaiuw.eot And breaks entire website occasionally. What can be done to resolve this? 回答1: I found this answer, which addresses the question more directly than the accepted

Matplotlib can&#039;t find font

匿名 (未验证) 提交于 2019-12-03 00:52:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to draw an xkcd-style plot with matplotlib (ver. 1.4.2) under Python 3. When I try to run: import matplotlib.pyplot as plt plt.xkcd() plt.plot([1,2,3,4], [1,4,9,16], 'bo') plt.axis([0, 6, 0, 20]) plt.show() It opens an empty window without any image and I get the error: /usr/lib/python3/dist-packages/matplotlib/font_manager.py:1279: UserWarning: findfont: Font family ['Humor Sans', 'Comic Sans MS', 'StayPuft'] not found. Falling back to Bitstream Vera Sans (prop.get_family(), self.defaultFamily[fontext])) /usr/lib/python3/dist

How to ignore font-size setting changes for Cordova App when runs on Android 4.4+?

匿名 (未验证) 提交于 2019-12-03 00:48:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've developed Cordova App with Cordova Version 3.6.3 and JQuery. The only one problem that i still can't get the best solutions is when i test my app on Android 4.4+ and there are users who love to change font size in setting > display > font-size of their device to be larger than normal. It causes my app layout displays ugly (the best display is when the font-size setting is normal only). But there is no effect of font-size setting for Android older than 4.4 (4.3,4.2...) So the app displays perfectly on older version. The solutions that I

How to know if NSString fits in UILabel or not and index of the last string which fits?

匿名 (未验证) 提交于 2019-12-03 00:48:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have 4 lines UILabel with exact frame and font. I need to know if this string fits the label and what is the index of the last character which fits. 回答1: The kernel of the answer is in Cupcake's referenced posting. Anyway, you can use sizeWithFont:constrainedToSize:lineBreakMode: to figure out what the size of a frame would be with a particular font in a label of a given width given a specific word wrapping, e.g. CGSize size = [string sizeWithFont:font constrainedToSize:sizeConstraint lineBreakMode:UILineBreakModeWordWrap]; Set

How to change font size of plot title when the title is a variable in ggplot2?

匿名 (未验证) 提交于 2019-12-03 00:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using ggplot2 to generate a scatter plot. I made the title into a variable, how can I change the font size? The code is as the following: library("ggplot2") plotfunc <- function(x){ x + geom_point() + geom_smooth(se = FALSE, method = "lm", color = "blue", size = 1) + opts(title = plottitle, axis.title.x = theme_text(size = 8, colour = 'black'), axis.title.y = theme_text(size = 8, colour = 'black', angle = 90)) } plottitle <- "This is Title" p <- ggplot(data = iris, aes(x = Sepal.Length, y = Sepal.Width)) plotfunc(p) I tried opts(title =

DOMPDF - Class 'Font' not found

匿名 (未验证) 提交于 2019-12-03 00:46:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm trying to add a font via Command line. Every time I try i get the following error. Fatal error : Class 'Font' not found in / home / scripts / public_html / MarketingPalv2 / load_font . php on line 139 I also get a similar error when I try to use @font-face Fatal error : Class 'Font' not found in / home / scripts / public_html / MarketingPalv2 / include / font_metrics . cls . php on line 346 Hope you guys can help. 回答1: I figured out what it was. I downloaded the newest version of php-font-lib but i needed a older version. 回答2: