webfonts

Google fonts in React Native

让人想犯罪 __ 提交于 2019-12-12 10:37:51
问题 I was wondering if it'd be possible to use Google fonts in my React Native project. I've been looking for some information but I didn't find anything. Is it possible? Thanks. P.D.: I know I can download it and include it into my project. 回答1: Download google fonts from here : Github Google Fonts Suppose your font is Quicksand, you can do something like this in index.ios.js : import _ from 'lodash'; var OldText = Text; class NewText extends OldText { defaultProps = { customFont: false } render

SVG Font Rendering Problems while rendering Text on a Path in Chrome and Safari

瘦欲@ 提交于 2019-12-12 09:48:33
问题 I try to render some text along a bezier curve path in SVG: <svg xmlns="http://www.w3.org/2000/svg" version="1.1"> <path id='menu_path' d="M 80,40 Q 200,85 245,205" stroke="none" fill="none"/> <text fill="white"> <textPath xlink:href="#menu_path">News Info Presse Musik</textPath> </text> </svg> In Firefox this works fine, but in Chrome and Safari, the text looks ugly (look at "Musik"). Even when I use monospace fonts and set the text to uppercase it does not change. Here the Screenshots: http

display uninstalled font on a webpage [duplicate]

妖精的绣舞 提交于 2019-12-12 08:55:40
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Non-Standard fonts in web? I have created a Unicode font and I would like to use it on my webpage. I want people to see and read the font. Can they do it without installing the font? Something like run the font from server? If I remember correctly, I have seen this long time back. 回答1: You may do this using CSS3's @font-face feature. But you have to provide the necessary font formats. FontSquirrel's @font-face

Opera not rendering certain characters from webfonts

夙愿已清 提交于 2019-12-12 06:06:58
问题 Maybe it is not supposed to. But bear with me. I am using Google Web Fonts, and I am including PT Sans font like so: <link href="https://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic" rel="stylesheet" type="text/css"> and I even have .htaccess set like so: <IfModule mod_headers.c> <FilesMatch "\.woff$"> Header set Content-Type "application/octet-stream" </FilesMatch> <FilesMatch "\.ttf$"> Header set Content-Type application/octet-stream </FilesMatch> </IfModule> Now

Web Fonts don't work in firefox on local, but do on server

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 04:24:57
问题 I am developing a site locally and am using webfonts for symbols. When I just view the file in my browser (i.e. file:///path/to/file.html) the webfonts work in Chrome but not Firefox. However, if I upload the site to my server and view the file in Firefox, it works fine. Any idea why that would be and what I can do to view the file correctly locally? Here is a code snippet (all paths are valid): @font-face { font-family: 'WebSymbolsRegular'; src: url('fonts/websymbols.eot?#iefix') format(

using google web fonts on mac computer

喜夏-厌秋 提交于 2019-12-12 04:06:16
问题 I'm building a web page that uses Google WebFonts (open sans) on a PC and it works perfectly, but when I try it on a mac computer it shows a question mark within the text. Why is this? 回答1: The character you are seeing is the replacement character, which is used when a font does not contain a particular Unicode character, in this case, "ñ" AKA U+00F1 AKA "Latin small letter n with tilde". Google Open Sans does contain this character, so it seems that Safari is not correctly getting the font

How to Add Fonts to a Website [closed]

孤街醉人 提交于 2019-12-12 03:10:03
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Want to add a font to website. CSS File: @font-face { font-family: smFont; src: url(optima-regular-webfont.woff); } .smFont { font-family: smFont; } HTML File: About <strong class="smFont">The Company</strong> I have the above but the font doesn't come out right. Is my code wrong? 回答1: Make sure your path is

How do you use custom fonts with React-native android?

﹥>﹥吖頭↗ 提交于 2019-12-12 02:42:59
问题 I'm having difficulty getting custom webfonts to work with react-native on android. I have followed the instructions from here https://medium.com/@gattermeier/custom-fonts-in-react-native-for-android-b8a331a7d2a7#.w6aok6lpw but to no success. I've tried with a few different fonts, still no joy. nb I've tried renaming the font files, replaces dashes with underscores, all lowercase, and so on, but still no success. Any help, greatly appreciated. This is my code: import React, { Component } from

Why am I getting 500 errors when serving web font files in my CSS?

╄→гoц情女王★ 提交于 2019-12-12 01:36:03
问题 Getting started on a Django application and just serving up some static pages for now. Everything seems to be working but I am getting a 500 HTTP response for some of the web font assets that my CSS file is trying to load. I am referring to my CSS file using: <link rel="stylesheet" type="text/css" href="{% static "css/styles.css" %}"> Which works fine, but within the CSS are links to webfonts, which is following the standard format generated by FontSquirrel. For example: @font-face { font

Using Google Webfonts in Windows Phone 8 web browser control

不问归期 提交于 2019-12-12 01:29:25
问题 I am trying to use web fonts in my Windows phone application. From the comments I have read, I understood that it is not possible to use fonts embedded into XAP file. So, I am trying to open a webpage that contains Google Web Fonts which is at: http://omercelik.com/e.htm When I open this page from Internet Explorer on phone, it shows the font correctly. But when I try to load this page from a webBrowser control, it doesn't loads this page. I don't do anything else but this on my app: private