Code Monkey home page Code Monkey logo

Comments (3)

CharlesSkelton avatar CharlesSkelton commented on July 20, 2024

if my memory serves me correctly, in $HOME/.studioforkdb/studio.properties
there are 2 font related entries
font.size=14
font.name=Monospaced

these cannot be changed directly from within studio. First exit studio, and then use an editor such as vi to change them to your liking. You can list available java fonts via

$ cat ListJavaFonts.java
import java.awt.GraphicsEnvironment;
public class ListJavaFonts{
public static void main(String[] args){
String fonts[]=GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames();
for(int i=0;i<fonts.length;i++)
System.out.println(fonts[i]);
}
}
$ javac ListJavaFonts.java
$ java -cp . ListJavaFonts

from studio.

heshriti avatar heshriti commented on July 20, 2024

Is it possible to change the table view fonts?
Specifically, I'd like to set the font family where zero are "slashed" or "open", as opposed to "dotted zeroes" which is what I have now.

I tried to change the Config. Java:
as follows:

String name = p.getProperty("font.name", "Inconsolata");
int size = Integer.parseInt(p.getProperty("font.size","14"));

That didn't really change the table view font.

from studio.

heshriti avatar heshriti commented on July 20, 2024

Ok, Got it.

It is actually in the other file:
src/studio/core/Studio.java

UIManager.put("Table.font",new javax.swing.plaf.FontUIResource("Inconsolata",Font.PLAIN,UIManager.getFont("Table.font").getSize()));

Not sure I like it though.. But at least it's possible to customize.

Thank you..

from studio.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.