ForNeVeR / ForNeVeR/xaml-math

Better integration of system fonts with TeX features

Open
#241 2 comments 0 reactions 0 assignees View on GitHub
help-wanted kind:feature
Dominant language
C#
Stars
719
Forks
113
Avg merge
6d 12h
Merged PRs (30d)
1

Description

For example, consider this: `\text{Б}_{\text{Б}}`. It will be rendered ugly:
![image](https://user-images.githubusercontent.com/92793/72201132-841bdc80-3483-11ea-8d55-a71f43855473.png)

At the same time, a similar example `B_B` will look nice:
![image](https://user-images.githubusercontent.com/92793/72201137-9269f880-3483-11ea-8919-ca73d4305cc2.png)

That's basically because the system fonts lack some important metrics of TeX fonts (which are currently defined by `` and `` sections of `DefaultTexFont.xml`).

We should invent a way to somehow derive these parameters for system fonts (take some gold ratio-based numbers, I don't know, make something up) and parametrize our `SystemFont` with these numbers (while keeping a sensible set of defaults). After that, we could revert stuff like #240
(who knows, maybe even declare that our system fonts `SupportsMetrics => true`?) and make the system fonts work well in this context.

We should also take a look at the modern TeX engines: how do they deal with `\text` in math context? Do they work any better?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.