7 questions
1
vote
1
answer
148
views
Displaying WebDings font in Java swing isn't working, shown glyphs are empty
The code is:
package ssl;
import javax.swing.*;
import java.awt.*;
public class WebDingsPhontGlyph extends JFrame {
public WebDingsPhontGlyph() {
setTitle("WebDings Phone Glyph&...
1
vote
0
answers
190
views
Do Java Fonts work with all unicode code points?
I am trying to read all glyphs the font has available, in my case 547. Here's what I've done so far:
private static String getCharacters(Font font) {
final int glyphs = font.getNumGlyphs();...
2
votes
2
answers
230
views
Content from Jar file
Is it possible to create a custom font with a .ttf file that is inside a .jar file?
I've created a jar file with the following structure
Game.jar
├──Snake
│ ├── lib
│ | └── game_over.ttf
| ├...
3
votes
2
answers
1k
views
How to use kerning pairs extracted from a TTF file to correctly show glyphs as Path2D in Java?
This question is about recovering glyph font information in Java and it is related to a question posted here. For more details please check the question and answers.
It was suggested there to use ...
15
votes
3
answers
6k
views
How to add extra linux dependencies into a spring-boot buildpack image?
I updated my spring-boot application to use buildpacks to create my docker-image instead of a dockerfile. I also use Apache POI in my application and since that update I get an error when generating ...
0
votes
1
answer
48
views
Saving Fonts in JTextPane
As a part of learning Java GUI Programming with javax.swing I intend to save contents of a JTextPane with Font information. Is there a way to do so?
0
votes
1
answer
218
views
Why Java Font add a java icon in the Dock of macOs? [duplicate]
public static void main(String[] args) {
Font arial = Font.getFont(ImmutableMap.of(TextAttribute.FAMILY, "Arial"));
System.out.println(arial);
}
Having this little program, when executing it ...