# Use emoji in fonts in Processing

**URL:** https://discourse.processing.org/t/use-emoji-in-fonts-in-processing/43685
**Category:** Coding Questions
**Created:** [January 12, 2024, 7:58pm UTC](https://discourse.processing.org/t/use-emoji-in-fonts-in-processing/43685 "2024-01-12T19:58:04Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![afk](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@afk](https://discourse.processing.org/u/afk)
#### Post date: [August 18, 2024, 7:14am UTC](https://discourse.processing.org/t/use-emoji-in-fonts-in-processing/43685/12 "2024-08-18T07:14:30Z")

</div>

Hi, I try this code on windows 11 with intellij idea, only got the grey output.  
Is this a difference between the OS I use?  
Is it colorful on mac?

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/d/f/dfdff2540034471b00348d3e0559e5b41d6bad20.png)

Here is the code & pom.xml

```java
import processing.core.PApplet;

public class VerifyConfig extends PApplet {
    @Override
    public void settings() {
        super.settings();
        size(1000, 1000,FX2D);
    }

    @Override
    public void setup() {
        textFont(createFont("Segoe UI Emoji", 22));
        text("hello, world☺", 50, 150);

        textFont(createFont("Wingdings", 44));
        int init = 0x1F600;
        for (int i = 0; i < 80; i++) {
            String s = new String(Character.toChars(init+i));
            text(s, 60 + 60*(i%10), 100 + 60*(i/10));  
        }
    }

    public static void main(String[] args) {
        PApplet.runSketch(new String[]{"test"}, new VerifyConfig());
    }
}

```

```xml
    <properties>
        <maven.compiler.source>21</maven.compiler.source>
        <maven.compiler.target>21</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <repositories>
        <repository>
            <id>jitpack</id>
            <url>https://jitpack.io</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>com.github.micycle1</groupId>
            <artifactId>processing-core-4</artifactId>
            <version>4.3.3</version>
        </dependency>
    </dependencies>

```

---

_[View the full topic](https://discourse.processing.org/t/use-emoji-in-fonts-in-processing/43685)._
