GithubHelp home page GithubHelp logo

Changing font has no effect about xaml-math HOT 4 CLOSED

seghier avatar seghier commented on August 24, 2024
Changing font has no effect

from xaml-math.

Comments (4)

ForNeVeR avatar ForNeVeR commented on August 24, 2024 1

For this formula, you can try something like this:

\text{f(x)} = \cases{\text{1/3} & \text{if 0 ≤ x ≤ 1;} \\
\text{2/3} & \text{if 3 ≤ x ≤ 4;} \\
\text{0} & \text{elsewhere.}}

from xaml-math.

ForNeVeR avatar ForNeVeR commented on August 24, 2024 1

So, I've opened a feature request #411 and found a bug #412 while typing that formula.

This request I consider as answered for now, but feel free to ask any additional questions!

from xaml-math.

ForNeVeR avatar ForNeVeR commented on August 24, 2024

Please give the example of the formula you are rendering using this code.

Note that this system font setting only applies to the text section of the formula (i.e. when you use the text{ … } command). Math section can only use hardcoded fonts for now, because the font metrics are impossible to extract automatically for now.

(I'll open a separate feature request, and we'll think of auto-expanding the metrics system to work with any text in formulas later, if your request is about that part; but, to figure that out, we need a formula example.)

from xaml-math.

seghier avatar seghier commented on August 24, 2024

Thank you
Any simple formula
for example:

\begin{align} x+1 &= y + 1 \\ x &= y-1 \end{align}

\binom{n}{k} = \frac{n!}{k!(n-k)!}

f(x) = \cases{1/3 & \mathrm{if} \thinspace 0\le x\le 1;\cr 2/3 & \mathrm{if} \thinspace 3\le x \le 4; \cr 0 & 
\mathrm{elsewhere.}\cr}

I already create two plugins to use them in Rhinoceros 3D and Grasshopper, and i hope if there is a way to export the formula as svg or at least adding support for thin font, because create vector (svg or dxf) from thin font is easier in Rhino

image

from xaml-math.

Related Issues (20)

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.