Skip to content

Commit

Permalink
Update readme and about
Browse files Browse the repository at this point in the history
  • Loading branch information
Guo Yunhe committed Aug 31, 2016
1 parent 066b3f2 commit ef2bd2b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 98 deletions.
32 changes: 4 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,11 @@ A front-end for fontconfig. Setup perfect font effects, fast and easily.

## Download

[openSUSE, SUSE, Fedora, RHEL, CentOS, Scientific Linux](https://software.opensuse.org/download.html?project=home%3Aguoyunhebrave&package=fontweak)
- [CentOS, Fedora, openSUSE, RHEL, SUSE](https://software.opensuse.org/download.html?project=home%3Aguoyunhebrave&package=fontweak)

[Others](https://github.com/guoyunhe/fontweak/releases)
- [Debian & Ubuntu](https://software.opensuse.org/download.html?project=home%3Aguoyunhebrave&package=fontweak)

## Features and Screenshots

**Choose fonts by font family and language**

![Choose fonts](http://i.imgur.com/W3ErJ1q.png)

**Combine English font and CJK fonts**

![Use English font and Chinese font](http://i.imgur.com/SmQiGqv.png)

**Setup font render options**, including hinting, antialias, subpixel rendering

![Font render options](http://i.imgur.com/Q9a9Nw0.png)

**Font replacement**. Use installed fonts render missing fonts.

![Font replacement](http://i.imgur.com/YqTgD0I.png)

**Scheme management**, **1-click setup** and **Reset system default** functions.

![Scheme management](http://i.imgur.com/Japq96j.png)
- [Other Linux distributions](https://github.com/guoyunhe/fontweak/releases)

## Get Help and Report problems

Expand All @@ -44,8 +24,4 @@ GNU GENERAL PUBLIC LICENSE version 3 or later.

## Author

[Guo "IceRabbit" Yunhe](http://guoyunhe.me/)

## FAQ

Q: Why you use Java? Why you use Swing?
Guo Yunhe [email protected] https://guoyunhe.me/
43 changes: 0 additions & 43 deletions src/me/guoyunhe/fontweak/MainWindow.form
Original file line number Diff line number Diff line change
Expand Up @@ -2,49 +2,6 @@

<Form version="1.9" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
<NonVisualComponents>
<Container class="javax.swing.JDialog" name="aboutDialog">
<Properties>
<Property name="title" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="me/guoyunhe/fontweak/lang/main.properties" key="ABOUT" replaceFormat="java.util.ResourceBundle.getBundle(&quot;{bundleNameSlashes}&quot;).getString(&quot;{key}&quot;)"/>
</Property>
<Property name="iconImage" type="java.awt.Image" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
<Connection code="appIcon.getImage()&#xa;" type="code"/>
</Property>
<Property name="locationByPlatform" type="boolean" value="true"/>
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[400, 300]"/>
</Property>
<Property name="modal" type="boolean" value="true"/>
</Properties>

<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBoxLayout">
<Property name="axis" type="int" value="3"/>
</Layout>
<SubComponents>
<Container class="javax.swing.JScrollPane" name="jScrollPane1">
<Properties>
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
<Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo">
<EmptyBorder bottom="10" left="10" right="10" top="10"/>
</Border>
</Property>
</Properties>

<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
<SubComponents>
<Component class="javax.swing.JTextPane" name="jTextPane1">
<Properties>
<Property name="editable" type="boolean" value="false"/>
<Property name="contentType" type="java.lang.String" value="text/html" noResource="true"/>
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="me/guoyunhe/fontweak/lang/main.properties" key="ABOUT HTML" replaceFormat="java.util.ResourceBundle.getBundle(&quot;{bundleNameSlashes}&quot;).getString(&quot;{key}&quot;)"/>
</Property>
</Properties>
</Component>
</SubComponents>
</Container>
</SubComponents>
</Container>
<Container class="javax.swing.JDialog" name="createMatchDialog">
<Properties>
<Property name="title" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
Expand Down
35 changes: 8 additions & 27 deletions src/me/guoyunhe/fontweak/MainWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ private void saveFontList() {
fontconfig.matchList.get(selected).familyEdit = fonts;
}

private void openURL(String url) {
try {
Desktop.getDesktop().browse(new URL(url).toURI());
} catch (URISyntaxException | IOException e) {}
}

/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
Expand All @@ -143,9 +149,6 @@ private void saveFontList() {
private void initComponents() {
java.awt.GridBagConstraints gridBagConstraints;

aboutDialog = new javax.swing.JDialog();
jScrollPane1 = new javax.swing.JScrollPane();
jTextPane1 = new javax.swing.JTextPane();
createMatchDialog = new javax.swing.JDialog();
createMatchDialogOptionPanel = new javax.swing.JPanel();
createMatchDialogFamilyLabel = new javax.swing.JLabel();
Expand Down Expand Up @@ -204,23 +207,6 @@ public boolean isCellEditable(int row, int column){
okButton = new javax.swing.JButton();

java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("me/guoyunhe/fontweak/lang/main"); // NOI18N
aboutDialog.setTitle(bundle.getString("ABOUT")); // NOI18N
aboutDialog.setIconImage(appIcon.getImage()
);
aboutDialog.setLocationByPlatform(true);
aboutDialog.setMinimumSize(new java.awt.Dimension(400, 300));
aboutDialog.setModal(true);
aboutDialog.getContentPane().setLayout(new javax.swing.BoxLayout(aboutDialog.getContentPane(), javax.swing.BoxLayout.PAGE_AXIS));

jScrollPane1.setBorder(javax.swing.BorderFactory.createEmptyBorder(10, 10, 10, 10));

jTextPane1.setEditable(false);
jTextPane1.setContentType("text/html"); // NOI18N
jTextPane1.setText(bundle.getString("ABOUT HTML")); // NOI18N
jScrollPane1.setViewportView(jTextPane1);

aboutDialog.getContentPane().add(jScrollPane1);

createMatchDialog.setTitle(bundle.getString("CREATE FONT MATCH")); // NOI18N
createMatchDialog.setIconImage(appIcon.getImage());
createMatchDialog.setLocationByPlatform(true);
Expand Down Expand Up @@ -582,7 +568,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
}// </editor-fold>//GEN-END:initComponents

private void aboutButtonListener(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_aboutButtonListener
this.aboutDialog.setVisible(true);
openURL("https://github.com/guoyunhe/fontweak");
}//GEN-LAST:event_aboutButtonListener

private void fontAddButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_fontAddButtonActionPerformed
Expand Down Expand Up @@ -717,9 +703,7 @@ private void aliasRemoveButtonActionPerformed(java.awt.event.ActionEvent evt) {/
}//GEN-LAST:event_aliasRemoveButtonActionPerformed

private void helpButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_helpButtonActionPerformed
try {
Desktop.getDesktop().browse(new URL("https://github.com/guoyunhe/fontweak/wiki").toURI());
} catch (URISyntaxException | IOException e) {}
openURL("https://github.com/guoyunhe/fontweak/wiki");
}//GEN-LAST:event_helpButtonActionPerformed

/**
Expand Down Expand Up @@ -755,7 +739,6 @@ public void run() {

// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton aboutButton;
private javax.swing.JDialog aboutDialog;
private javax.swing.JButton aliasAddButton;
private javax.swing.JPanel aliasButtonPanel;
private javax.swing.JComboBox<String> aliasComboBox;
Expand Down Expand Up @@ -793,9 +776,7 @@ public void run() {
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JPanel jPanel4;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JScrollPane jScrollPane2;
private javax.swing.JTextPane jTextPane1;
private javax.swing.JButton matchCreateButton;
private javax.swing.JButton matchDeleteButton;
private javax.swing.JPanel matchFontListPanel;
Expand Down

0 comments on commit ef2bd2b

Please sign in to comment.