This question is answered. Helpful answers available: 0. Correct answers available: 1.


Permlink Replies: 4 - Pages: 1 - Last Post: 14 Oct 25, 15:42 Last Post By: pdphr
pdphr

Posts: 6
Registered: 2-Oct-2020
Implementing custom fonts (GoogleFonts) in predefined settings. (Story & Ti
Posted: 13 Oct 25, 16:38
 
  Click to reply to this thread Reply
Dear Laza,

I would like to customize the fonts in the typography preferences (add new fonts, delete others).

I took a look under the hood and found the corresponding settings in Gui.java
I added my desired fonts, including pairings, to the corresponding sections at the end and deleted other fonts.
Editor is Notepad++
 // Typography
private final JComboBox fontSuggestions = new JComboBox(new Object[] {
            “[” + getText(“ui.suggestedFonts”) +  “]”,
 
JComboBox fontFamily = new JComboBox(new Object[] {
            new Item ....
 
JComboBox headlineFont = new JComboBox(new Object[] {
            new Item ...;

jAlbum was restarted, but unfortunately the changes do not appear in the pop-up menus; the predefined fonts are still there.

Any idea what I did wrong? Or is it basically impossible to change these settings?
I would like to avoid integrating the fonts via CSS.

I also tried it with Tiger Skin, and got exactly the same result.

Currently in use: jAlbum 37.7.3, Story 6.3.2
Thank you and best regards
Peter
Laza

Posts: 1,457
Registered: 6-Sep-2005
Re: Implementing custom fonts (GoogleFonts) in predefined settings. (Story & Ti
Posted: 14 Oct 25, 07:02   in response to: pdphr in response to: pdphr
Helpful
  Click to reply to this thread Reply
Editing the Java file is ineffective, as it serves only as a backup. The UI is compiled in NetBeans; you can't do that. If you suggest some fonts (or pairings), I can implement that.
pdphr

Posts: 6
Registered: 2-Oct-2020
Re: Implementing custom fonts (GoogleFonts) in predefined settings. (Story & Ti
Posted: 14 Oct 25, 11:43   in response to: pdphr in response to: pdphr
 
  Click to reply to this thread Reply
Hi Laza,
thank you very much for the offer, but I will continue to integrate the font via CSS as before, as some of the pairings are quite specific.
Kind regards
Laza

Posts: 1,457
Registered: 6-Sep-2005
Re: Implementing custom fonts (GoogleFonts) in predefined settings. (Story & Ti
Posted: 14 Oct 25, 12:59   in response to: pdphr in response to: pdphr
Helpful
  Click to reply to this thread Reply
I don't understand what you're trying to do.

What you are referring to is the User Interface (Typography panel).

The skin is using the font selected in the User Interface through a CSS file.

The Pairing Suggestions are only suggestions, and you can select any font through the Font Family and Headline font boxes.

In the Headline font box, you can enter any font name manually, not only those that are present in the box.
pdphr

Posts: 6
Registered: 2-Oct-2020
Re: Implementing custom fonts (GoogleFonts) in predefined settings. (Story & Ti
Posted: 14 Oct 25, 15:42   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
That's perfectly fine with me now.
My initial question has been answered sufficiently.
Laza wrote:
In the *Headline font* box, you can enter any font name manually, not only those that are present in the box.

I didn't know/try that.

Thank's for your patience.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums