fonts

Creating a font preview

限于喜欢 提交于 2019-12-24 09:34:34
问题 I am working on a site with a type designer. He doesn't want his fonts on font resellers and would like people to buy his own font on his site. He would like a web app that shows the live font and would also allow people to type in a input box to generate there own words with the font. Just like myfonts and other font websites have. How can I do this? JavaScript/jQuery if possible, or PHP. 回答1: If the designer doesn't want people to be able to download the font without payment, JavaScript and

Where are fonts defined/installed for Openjdk Java on linux

拥有回忆 提交于 2019-12-24 09:24:13
问题 Installed Oracle 8 jdk on Ubuntu, within jre/lib it has various fontProperties files plus a fonts dir containing fonts. But when installed OpenJdk 8 there is no such fonts folder on font files within jre/lib. So where does it get its fonts from, does it come with any fonts on depen on the system having some fonts installed somewhere else. Update Based on advise from gerynix fc-list returns no fonts GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames() gives java.lang

laravel - linking to custom fonts

我怕爱的太早我们不能终老 提交于 2019-12-24 09:12:44
问题 I have already asked and played around with this question on Laravel discussions here (https://laracasts.com/discuss/channels/code-review/linking-to-custom-font-file-from-a-stylesheet-inside-a-blade-template). moving the file back to the stylesheet and removing the asset in the link the did not. I am trying to import custom fonts into my website, but because of Laravel's router, I can't directly link to the font files in my CSS. how can I get my custom fonts to display in the browser? So far,

Best Way to Save a Font in SQL Server database

北战南征 提交于 2019-12-24 09:08:05
问题 Which is the best way to insert a font in a SQL Server database, while knowing that this font can accessed from different environments (Windows/Linux) and languages (Java/PHP/Python/C#)? I have a case where I should insert a Font from a C# Winforms application and get this font from Java application, and currently I'm inserting Font.Name , Font.Style and Font.Size and from Java I'm retrieving the font using Font.Decode(); method. And it works in many cases, but I thought it might be better to

What is the new syntax for SVG fonts?

倾然丶 夕夏残阳落幕 提交于 2019-12-24 08:47:48
问题 I was browsing SVG fonts in MDN, where it is mentioned that <font-face>, <missing-glyph>, <hkern> and <vkern> are depreciated. Only <glyph> is not depreciated. It does not mention anything about a recommended way of specifying the font face properties. The W3C SVG recommendation also does not say anything about an alternative way of specifying SVG fonts, apart from noting that everything in the <font-face> can be done equivalently in CSS. It does not provide any alternative for <hkern> or

Runtime Exception: Font not found for every font i've tried - Android

只愿长相守 提交于 2019-12-24 08:18:57
问题 I have a custom extended TextView I am using for custom fonts within my application, but for some reason I keep getting a run-time exception where the program can't find the font in question. The format of the directory I'm using is main > assets > fonts > Portrait-Light.ttf I've looked everywhere for a solution but they all seem to be rounding to the same answers on SO. CustomFontTextView.java : public class CustomFontTextView extends TextView { public CustomFontTextView(Context context) {

How do I change the font size according to screen size

梦想的初衷 提交于 2019-12-24 08:12:36
问题 I have added min font size to label but the font is not changing according to the screen size. I thought setting min font size and using autolayout is to scale the label height is enough. But its not happening. 回答1: Use minimum font scale instead of minimum font size. Minimum font size was deprecated in IOS 6. In the image although mine says fixed here you can change that and then set the scale factor. To vary by size of the screen you can do some of that with interface builder. See image.

How to manage text glyph boundary

左心房为你撑大大i 提交于 2019-12-24 08:07:54
问题 Suppose I have a clock app, and I want to label the hours with characters that could be in an arbitrary character set/font. I'd like to frame the character in a frame and fill it as much as possible. How can I do that? If I use a UILabel , space gets inserted around the glyph. Here are examples showing two labels, both with the same font but with different characters. The Hebrew numerals all seem shorter than the Arabic numerals. Is there a way to determine the size of the glyphs or somehow

Icomoon selection.json, add new icon for existing project

混江龙づ霸主 提交于 2019-12-24 07:47:21
问题 I've try to add new icons to selection.json, I've downloaded the new json file, and see that icons where add. But they are not visible in index.html. I'm not seeing facebook and goole+ icons.The selection.json automaticaly updated my iconmoon.svf file. My selection.json code. { "IcoMoonType": "selection", "icons": [ { "icon": { "paths": [ "M325.8 457.4v111.8h184.8c-7.4 48-55.8 140.6-184.8 140.6-111.2 0-202-92.2-202-205.8s90.8-205.8 202-205.8c63.4 0 105.6 27 129.8 50.2l88.4-85.2c-56.8-53-130.4

Drawing exotic fonts in a java applet

风格不统一 提交于 2019-12-24 07:11:39
问题 I'd like to draw symbols contained in exotic fonts such as Wingdings, Webdings (they are called dingbats : http://en.wikipedia.org/wiki/Dingbat) in a java applet. When using Graphics.drawString() I end up with the typical 'square symbol' for each character in the drawn string. I could not find any answer by googling and I guess it's not something common. In the past I've done it with C# WPF, failed to do it with SVG and HTML. Is it possible in java? EDIT: Solved. There was a subtlety. Even