Giter VIP home page Giter VIP logo

emojisfx's Introduction

EmojisFX

Beautiful emojis support for JavaFX 8.

Simple example

Default emojis: Open Moji 13.0.

TODO

  • EmojisField: editable field with emojis.
  • Optimizations

How to use

Full example: com.madeorsk.emojisfx.examples.SimpleExample

Classic label

EmojisLabel is very similar to a normal label, it just has one more property which is the path of the emojis directory (only internal directories for now).

// See com.madeorsk.emojisfx.examples.SimpleExample in test directory for the full example.

// Create an EmojisLabel, and we are so happy that we indicate it with an emoji.
EmojisLabel label = new EmojisLabel("Look! That's a coloured emoji! \uD83D\uDE04");
label.setFont(Font.font(24)); // Please, I want to see this text!
root.getChildren().add(label);

Selectable label

EmojisLabel text is selectable, and you can set the selection colors.

// See com.madeorsk.emojisfx.examples.SimpleExample in test directory for the full example.

label.setSelectionFill(Color.BLACK); // So dark...
label.setSelectedTextFill(Color.WHITE);

Linkable label

EmojisLabel also support integrated links!

// See com.madeorsk.emojisfx.examples.SimpleExample in test directory for the full example.

EmojisLabel linkedLabel = new EmojisLabel("Do you ❤ this? If yes, consider making a donation.");
linkedLabel.setLinkTextFill(Color.rgb(255, 90, 121)); // A link with the same color as the heart.
linkedLabel.addLinkRange(new Range(24, 40, () -> { /* Link action. */ }));
root.getChildren().add(linkedLabel);

You can use com.madeorsk.emojisfx.Testing as another example.

emojisfx's People

Contributors

madeorsk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

lvxingtu

emojisfx's Issues

Many missing emojis

Hi ! First of all, I see that you are the only one who allowed to use colored emojis with javafx, thanks for that, it's very useful for me.
I see that the Artifact hasn't been updated for 3 years. Is it possible to update the emojis list, or is it discontinued ?
Thanks

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.