fonts

JTextField crops text when using custom TrueType font. How to make it display text normally?

馋奶兔 提交于 2020-01-25 03:36:08
问题 So, the problem is definitely with the font. Question is how to make the text field display text fully. Example: import javax.swing.*; import java.awt.*; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.net.URL; import java.nio.channels.Channels; import java.nio.channels.ReadableByteChannel; class Example extends JFrame{ public Example(){ setLayout(new BorderLayout()); Font myFont = null; try { URL link = new URL("http://rghost.ru/download/50564305

Sending fax with .NET

随声附和 提交于 2020-01-25 02:59:09
问题 I'm trying to send faxes with a .NET (C#) program using Crystal Reports and Unimessage Pro (or any other fax program). My problem is that Unimessage Pro (and other fax programs) uses printer fonts for the fax commands. Since .NET doesn't support printer fonts the fax commands in the report are converted to Courier New. The result of this is that the fax program doesn't recognize the fax commands but sees them as plain text and the fax isn't sent. How do I send a fax with Crystal Reports and

How to ignore missing glyphs in font used by PDFBox 2.0.7

你说的曾经没有我的故事 提交于 2020-01-24 22:59:06
问题 I'm seeing "java.lang.IllegalArgumentException: No glyph for U+05D0 in font" (as an example) exception being thrown when calling the showText(String) method of PDFPageContentStream. Catching the exception isn't very helpful because good characters won't get written. Neither is checking each character in the input string, which would be a performance killer (each PDF could be thousands of pages, millions of characters). What I really need is a way to prevent the exception for ANY missing glyph

wkhtmltopdf keep font size issue

情到浓时终转凉″ 提交于 2020-01-24 20:55:06
问题 I'm converting a html file to pdf with wkhtmltopdf 0.12.1.2 and the font sizes are different on the output, the font size is 13.68 but it's 11pt in the html. Any help on getting it to match? <span style="font-family: Calibri; font-size: 11pt; "> <table> <tbody> <tr><td>this is a test Calibri 11pt font</td></tr> etc etc wkhtmltopdf32.exe --disable-smart-shrinking --page-width 215.900000 --page-height 279.400000 1.htm 1.pdf even if I remove the page size it's still the same. 回答1: This issue is

@font-face in CSS…is it ok?

我与影子孤独终老i 提交于 2020-01-24 18:13:46
问题 On my website, my font family is Tw Cen MT, Gill Sans, Century Gothic, sans-serif . Obviouisly, not everyone is going to have Tw Cen MT , so I have chosen to try out the @font-face method. Here is my css: @font-face { font-family: Tw Cen MT; src: local("Tw Cen MT"), url(fonts/TwCenMT.ttf) } A few questions: Will this work in all modern browsers (Firefox, Chrome, Safari, and IE8)? I have not yet tested it because I have the font. Does this method work for you when you visit my homepage? the

@font-face in CSS…is it ok?

烈酒焚心 提交于 2020-01-24 18:12:19
问题 On my website, my font family is Tw Cen MT, Gill Sans, Century Gothic, sans-serif . Obviouisly, not everyone is going to have Tw Cen MT , so I have chosen to try out the @font-face method. Here is my css: @font-face { font-family: Tw Cen MT; src: local("Tw Cen MT"), url(fonts/TwCenMT.ttf) } A few questions: Will this work in all modern browsers (Firefox, Chrome, Safari, and IE8)? I have not yet tested it because I have the font. Does this method work for you when you visit my homepage? the

How can I use the New York font in web content on iOS 13?

青春壹個敷衍的年華 提交于 2020-01-24 09:27:26
问题 Apple released a new font, New York, with iOS 13. Is it possible to set it in CSS for web content, like using -apple-system for San Francisco? 回答1: I was able to reference the fonts on my MacBook with these: .NewYork-Regular .NewYork-Bold .NewYork-Medium .NewYork-RegularItalic .NewYork-BoldItalic .NewYork-MediumItalic Others may exist, but these are the only ones that worked for me. I did install the font from their developer page before testing, but I'm not sure it's needed - it may be

How can I detect system Chinese, Korean, and English fonts without embedding one for each? (AIR mobile on Android and IOS)

不羁的心 提交于 2020-01-24 05:24:33
问题 My learning app requires displaying Korean, English and Chinese. One solution I have is to embed a Korean/English font and a Chinese font. Then put together a string with different TextFormat s. The thing is, I'm positive that IOS and Android devices should contain native Chinese, Korean and English fonts already, and I'd much rather refer to and use those fonts instead of packing them. I tried detecting fonts by using Font.enumerateFonts(true) , but when I use font.hasGlyphs('你') , I don't

Why does removing woff2 in @font-face solve IE11 problems

会有一股神秘感。 提交于 2020-01-24 05:07:12
问题 I had troubles with a @font-face these days. My font was not displaying in IE11, but in all others. Turned out that removing the "woff2" font solved my problems and the font displayed normally. My question now is: Why could that be the solution? What is going on in IE11s mind, that removing a simple "woff2" tag could be the answer? I mean, normally I read about .htaccess files and other things which are really not easy to find out... Does IE11 try to load the woff2 first? 回答1: IE 11 use woff

Using Custom Fonts [java.io.IOException: Error reading font data.]

泪湿孤枕 提交于 2020-01-24 03:56:04
问题 The title doesn't allow me to say Problem, so the actual error message was - java.io.IOException: Problem reading font data. at java.awt.Font.createFont(Unknown Source) at AddFont.createFont(AddFont.java:11) at MainFrame$1.run(MainFrame.java:105) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown