Skip to content

Commit

Permalink
Added math font functions (set/inq)
Browse files Browse the repository at this point in the history
  • Loading branch information
jheinen committed Jan 18, 2024
1 parent f87f742 commit 0232ce9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/GR.jl
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ export
setscientificformat,
setresizebehaviour,
inqprojectiontype,
setmathfont,
inqmathfont,
# Convenience functions
jlgr,
colormap,
Expand Down Expand Up @@ -4340,6 +4342,22 @@ function moveselection(x, y)
x, y)
end

function setmathfont(font::Int)
ccall( libGR_ptr(:gr_setmathfont),
Nothing,
(Int32, ),
font)
end

function inqmathfont()
_font = Cint[0]
ccall( libGR_ptr(:gr_inqmathfont),
Nothing,
(Ptr{Cint}, ),
_font)
return _font[1]
end

# JS functions
include("js.jl")

Expand Down
2 changes: 2 additions & 0 deletions src/libgr_syms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,6 @@
:gr_beginselection
:gr_endselection
:gr_moveselection
:gr_setmathfont
:gr_inqmathfont
]

0 comments on commit 0232ce9

Please sign in to comment.