fonts

Change TextView of WheelView

淺唱寂寞╮ 提交于 2019-12-24 20:57:15
问题 I am using Yuri Kanivets' WheelView in my project. For translation purposes, I have made a custom TextView with custom Font. The WheelView uses TextView to display text. I would like to use the custom Textview in Wheelview so that it displays the text in custom font. How do I do that? I don't want to change the original source of wheelview, in case I have to use it for other apps. Code of the wheelview adapter: /** * Adapter for string based wheel. Highlights the current value. */ private

IText: registering font: not found as file or resource

拥有回忆 提交于 2019-12-24 19:38:49
问题 I am developing on windows plattform. My maven project has the following structure for font resources: src/main/resources/package/name/fonts I try to register a font as following: FontFactory.register("package/name/fonts/fontname.otf"); But I get the error: package/name/fonts/fontname.otf not found as file or resource What is my failure? Thank you 回答1: First I get the correct path with getResource(): String pathtofont = "/package/name/fonts/fontname.otf"; String fontname = myworkingclass

Helvetica Neue baseline rendering problem with Firefox/Mac

不想你离开。 提交于 2019-12-24 19:27:14
问题 Consider this HTML: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <style type="text/css"> body { font-family: "Helvetica Neue", Arial, Helvetica, sans-serif; line-height:20px; font-size:14px; } .a { float:left; } .b { font-weight:bold; } </style> </head> <body> <div class="a"

Rails 3.0.7 caching font issue

送分小仙女□ 提交于 2019-12-24 18:59:00
问题 I have an application running on Rails 3.0.7, thin 1.2.11, and nginx 0.7.65. The main index page for my website has a link to my "résumé", accents included. The page is rendering fine, however, after the initial view, once the page is cached, the text is displayed as "Résumé". I have absolutely no idea why this is happening, what could be causing this? 回答1: I had the same problem. Was solved by adding this in head : <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> 来源:

Get font of selected text in JEditorPane

邮差的信 提交于 2019-12-24 18:30:25
问题 Basically the question says it all; I have a JEditiorPane with the content type 'text/html'. I have created a font family and font size combo box and enabled them using the StyledEditorKit actions. This works great and I can change the font attributes of selected text (you what it does...) The only thing is when I select the text it's a bit confusing because the ComboBox's still show the users previous selection. I would love to implement the functionality to update the combo box values

Hindi Marathi font on Android

一世执手 提交于 2019-12-24 17:48:01
问题 which font is most suitable for Android application developed in Marathi/ Hindi indian language. I tried with mangal and droidsansfallback but still the words dont appear as they should. I don't see the boxes or some special characters after using above font which is good, but still the marathi/hindi words doesnt have exacts alphabets. Any help/guidance will be appreciated. Thanks.... 回答1: As Devanagari fonts are not supported by Android, you can still give that support to your Application.

Change font for particular text via script in Photoshop

二次信任 提交于 2019-12-24 17:07:05
问题 Looking for a script or action for changing font face for a particular word or text in a paragraph. I have multiple .psd files (80+) where I need to change font for a specific text say "Hello" from Arial to Tahoma and also make it bold. Really appreciate a help! 回答1: You could try "jam" framework. There is class for manipulating with text. http://www.tonton-pixel.com/JSON%20Action%20Manager/jsDoc/symbols/jamText.html You are looking for textStyleRange. var text = "Bonjour !"; var layerText =

Latex verbatim: show characters using a fallback font?

你。 提交于 2019-12-24 16:42:47
问题 I use a specific monofont for verbatim blocks. In one of my verbatim block, some characters are not included in the font. As suggested in this post, one can use either a different font, or use pmboxdraw package to render the un-supported characters. But it seems that it does not work for me. The following is a MWE, in which the black circle (i.e., 1st character of the second line) can not be drawn correctly. My intention is that to use the monofont I used for the verbatim block, and use

font-weight:300 doesn't work in Chrome

故事扮演 提交于 2019-12-24 16:25:23
问题 I'm having an issue with font-weight in Chrome. Any font weights lower than the default weight of 400 will render at the default weight, overriding the font-weight:300 CSS attribute. Font weights higher than the default weight will render as expected in Chrome, and all font weights render properly in Firefox. Why is this happening? For example: <div class="light">Light</div> with CSS .light {font-weight:300;} will render as if font-weight:400. jsfiddle, compare view in Firefox and Chrome EDIT

Font-embedding: what is wrong here?

ぃ、小莉子 提交于 2019-12-24 16:24:18
问题 I'm still pretty new to html and css, so I might be overlooking things. Been entertaining myself trying to create a little website and arrived at embedding a font to it. It is working in firefox, yet in internet explore it isn't. I do not know about other browsers. Here is a link to the site. Click the L to go to a second page: http://librarchive.com/newcat.html. Due to this there are also some positioning faults, as you can see. So the font is not correctly working. What do I do? Here is my