Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

GodoTeX 3

An asset by fi-le
The page banner background of a mountain and forest
GodoTeX 3 hero image

Quick Information

1 ratings
GodoTeX 3 icon image
fi-le
GodoTeX 3

Renders Latex in Godot Mono! Usage Instructions:1.Create a Godot Mono project and build a C#-script.2. Install from the Godot Asset Store from inside the Engine or by cloning. When including in an existing project, you won't need the *.godot and *.sln.3. The add-on depends on CSharpMath.SkiaSharp, licensed under MIT, as a nuget package. You to integrate this into your existing Godot Mono project by copying the <ItemGroup>-tags into your project's .csproj-file from GodoTeX.csproj.4. Enable the addon in the settings, as usual. You can now create a LaTeX node and start your math excapades!

Supported Engine Version
3.5
Version String
0.0.2
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

$\text{Godo}\TeX$

GodoTeX is an add-on to Godot Mono that renders LaTeX expressions - in the editor and at runtime!

README

Features

  • It's pretty fast!
  • Editor Integration
  • Inherits all Functionality from Sprite
  • Adjustable Font Size
  • Adjustable Font Color
  • Anti-Aliasing (with Toggle)

Compatibility

The add-on is tested for Godot 3.5.x and is expected to run on 3.x. It supports Windows and Linux. MacOS is sadly not being tested due to lack of appropriate hardware, but pull requests are welcome. A version for Godot 4.x will be provided after its release, if possible.

Usage

A custom node LaTeX( README ) inheriting from Sprite is provided and may be instanced like any other. It has the following properties, which may be updated in the editor or programmatically at runtime

  • LatexExpression: A string containing the expression to be rendered. If invalid, the corresponding error message will be rendered instead.
  • FontSize: A float, the font size in points. It essentially controls the resolution of the rendered image. Decrease for better performance, increase for higher fidelity.
  • MathColor: A Godot Color, the typeface's color.
  • AntiAliasing: A bool. The renderer may or may not be instructed to anti-aliase the rendered typeface. Note that this is distinct from Godot's own anti-aliasing.

When updating these in the editor, the expression is automatically rendered anew. When updating properties programmatically, you decide yourself when to render by calling the .Render() method - to save ressources. Rendering very often (several times a millisecond) may result in errors.


There is also a LaTeXButton( README ) node for clickable expressions. This behaves like a TextureButton.


Further, a special node for usage in 3D is provided - LaTeX3D( README ).


For a list of LaTeX examples that can be rendered, see here.

A demo is available here.

Installation

  1. Create a Godot Mono project and build a C#-script.
  2. Install from the Godot Asset Store from inside the Engine or by cloning. When including in an existing project, you won't need the *.godot and *.sln.
  3. The add-on depends on CSharpMath.SkiaSharp, licensed under MIT, as a nuget package. You integrate this into your existing Godot Mono project by copying the <ItemGroup>-tags into your project's .csproj-file from GodoTeX.csproj.
  4. Enable the addon in the settings, as usual. You can now create a LaTeX node and start your math excapades!

License

Licensed under MIT. © 2022 fi-le

Renders Latex in Godot Mono!

Usage Instructions:

1.Create a Godot Mono project and build a C#-script.

2. Install from the Godot Asset Store from inside the Engine or by cloning. When including in an existing project, you won't need the *.godot and *.sln.

3. The add-on depends on CSharpMath.SkiaSharp, licensed under MIT, as a nuget package. You to integrate this into your existing Godot Mono project by copying the -tags into your project's .csproj-file from GodoTeX.csproj.

4. Enable the addon in the settings, as usual. You can now create a LaTeX node and start your math excapades!

Reviews

1 ratings
germer Rated positive

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

1 ratings
GodoTeX 3 icon image
fi-le
GodoTeX 3

Renders Latex in Godot Mono! Usage Instructions:1.Create a Godot Mono project and build a C#-script.2. Install from the Godot Asset Store from inside the Engine or by cloning. When including in an existing project, you won't need the *.godot and *.sln.3. The add-on depends on CSharpMath.SkiaSharp, licensed under MIT, as a nuget package. You to integrate this into your existing Godot Mono project by copying the <ItemGroup>-tags into your project's .csproj-file from GodoTeX.csproj.4. Enable the addon in the settings, as usual. You can now create a LaTeX node and start your math excapades!

Supported Engine Version
3.5
Version String
0.0.2
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers