Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

U+22BB \veebar: ⊻ #532

Open
imyxh opened this issue Apr 14, 2023 · 5 comments
Open

U+22BB \veebar: ⊻ #532

imyxh opened this issue Apr 14, 2023 · 5 comments

Comments

@imyxh
Copy link

imyxh commented Apr 14, 2023

Hey, thanks for the great font!

I think it'd be nice to have ⊻, an alternative to \oplus for xor. It's the default xor operator in Julia, for example. I noticed it didn't show up in the LaTeX package (by the way, how does the LaTeX package get updated? should I file this issue somewhere else too?) but it doesn't seem to be in the regular font either.

I'd love to help but I have no experience designing fonts and am worried I'd make something ugly :P

@kopeckyf
Copy link
Contributor

Hey,

I created ⊻ based on the existing ∨ for a book project at Language Science Press. The changes are not upstream in this repository and need to be merged once someone with merging powers becomes active again. In the meantime, you could this compiled OTF: https://github.com/langsci/349/blob/main/LibertinusMath-Regular.otf

Here's a minimal TeX document to use that symbol:

\documentclass{article}

\usepackage{unicode-math}
\setmathfont{LibertinusMath-Regular.otf}

\begin{document}
	$\veebar$
\end{document}

The Libertinus package for the TeX distributions is managed by Herbert Voß. I'm sure that Herbert would be happy to update the sources once a new release from Libertinus becomes available – maybe this new release will include the ⊻ glpyh.

You could also merge the code I used into your local sfd font sources:

StartChar: uni022B
Encoding: 555 555 618
Width: 504
GlyphClass: 2
Flags: MW
LayerCount: 2
Fore
SplineSet
351 665 m 2
 127 665 l 2
 118 665 114 676 114 683 c 0
 114 695 125 715 136 715 c 2
 361 715 l 2
 371 715 375 704 375 698 c 0
 375 686 364 665 351 665 c 2
121 575 m 0
 121 601 142 623 168 623 c 0
 194 623 215 601 215 575 c 0
 215 549 194 528 168 528 c 0
 142 528 121 549 121 575 c 0
290 575 m 0
 290 601 311 623 337 623 c 0
 363 623 384 601 384 575 c 0
 384 549 363 528 337 528 c 0
 311 528 290 549 290 575 c 0
41 205 m 0
 41 268.2 60 326.4 96.3 369 c 0
 132.9 412 187.2 439 253 439 c 0
 406 439 463 318 463 214 c 0
 463 152.7 442.7 89.8 397.9 46 c 0
 363.8 12.7 315.4 -10 251 -10 c 0
 109 -10 41 103 41 205 c 0
238 404 m 0
 148 404 127 315 127 228 c 0
 127 151 161 25 265 25 c 0
 312 25 377 56 377 182 c 0
 377 326 324 404 238 404 c 0
EndSplineSet
Colour: ff00ff
EndChar

@imyxh
Copy link
Author

imyxh commented Apr 21, 2023

@kopeckyf thanks so much!!

@waldyrious
Copy link
Collaborator

The changes are not upstream in this repository and need to be merged

Is there an open PR for this that you could point to, for the record?

@kopeckyf
Copy link
Contributor

@waldyrious not yet, I thought I'd wait until the excellent #454 is merged.

The eventual PR should not only include ⊻, but maybe also ⩒, ⊼ and some other math glyphs I've been working on.

@kopeckyf
Copy link
Contributor

kopeckyf commented Dec 5, 2024

Pull request #568 now open for this glyph.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants