AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Programmieren allgemein Probleme mit Koreanisch in einer Anwendung (Java/Swing)
Thema durchsuchen
Ansicht
Themen-Optionen

Probleme mit Koreanisch in einer Anwendung (Java/Swing)

Ein Thema von Bernhard Geyer · begonnen am 11. Mär 2019 · letzter Beitrag vom 12. Mär 2019
 
mjustin

Registriert seit: 14. Apr 2008
3.010 Beiträge
 
Delphi 2009 Professional
 
#5

AW: Probleme mit Koreanisch in einer Anwendung (Java/Swing)

  Alt 11. Mär 2019, 20:19
Für Chinesisch wird bei mir nur angezeigt:

187 font families installed
Microsoft JhengHei
Microsoft JhengHei Light
Microsoft JhengHei UI
Microsoft JhengHei UI Light
Microsoft YaHei
Microsoft YaHei UI
Yu Gothic
Yu Gothic Light
Yu Gothic Medium
Yu Gothic UI
Yu Gothic UI Light
Yu Gothic UI Semibold
Yu Gothic UI Semilight

(Oracle JDK 8u201)


Code:
        final String MY_STRING = "\u2e8f";
       
        initComponents();
       
        jLabel1.setText(MY_STRING);
       
       
        String[] fonts = GraphicsEnvironment.getLocalGraphicsEnvironment().
                getAvailableFontFamilyNames();
        System.out.println(fonts.length + " font families installed");
        List<String> supportedFonts = new ArrayList<>();
        for (String fontName : fonts) {
            Font f = new Font(fontName, Font.PLAIN, 1);
            if (f.canDisplayUpTo(MY_STRING)<0) {
                System.out.println(fontName);
                supportedFonts.add(fontName);
            }
        }
       
        String[] a = supportedFonts.toArray(new String[0]);
       
        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(a));
Segoe UI fehlt, was auch der Microsoft-Dokumentation entspricht.
Michael Justin
habarisoft.com
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 20:57 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz