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

Detect fontstyle as part of clm data #112

Closed
wants to merge 276 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
276 commits
Select commit Hold shift + click to select a range
e02c0c6
process orphan Unicodes
NanoMichael Jul 9, 2021
8a8c2b5
add setmathfont support
NanoMichael Jul 9, 2021
3c004fb
remove UnderScoreAtom, use _ symbol instead
NanoMichael Jul 10, 2021
745a91c
refactor VRotAtom
NanoMichael Jul 10, 2021
0abfe1a
color atom
NanoMichael Jul 10, 2021
7f64e7d
UnderOverAtom fix
NanoMichael Jul 10, 2021
0b308e7
refactor StackAtom
NanoMichael Jul 11, 2021
c90e679
debug draw baseline
NanoMichael Jul 11, 2021
03103d0
remove useless code
NanoMichael Jul 11, 2021
ff8340e
move *Atom defination to cpp file
NanoMichael Jul 11, 2021
ae26f35
ignore kern if is over or under is space
NanoMichael Jul 11, 2021
7e3fe86
StackAtom add italic correction
NanoMichael Jul 12, 2021
172ccf9
ScriptsAtom: only super/sub script
NanoMichael Jul 12, 2021
60e4ab7
ScriptsAtom: both sup/sub script
NanoMichael Jul 12, 2021
0c41c32
ScriptsAtom done
NanoMichael Jul 12, 2021
9edf217
debug mode add multi params control
NanoMichael Jul 13, 2021
38221d3
move VRowAtom defination to cpp file
NanoMichael Jul 13, 2021
a96e6ad
big operator atom depth fix
NanoMichael Jul 14, 2021
289b5c0
add OperatorAtom
NanoMichael Jul 16, 2021
fb1444b
remove common.h
NanoMichael Jul 16, 2021
9980c7a
show box string
NanoMichael Jul 17, 2021
08d0325
ScriptsAtom reset v
NanoMichael Jul 17, 2021
78cf14e
optimize debug info
NanoMichael Jul 17, 2021
38c9719
add ZStackAtom
NanoMichael Jul 17, 2021
f75634a
ScriptsAtom bottom
NanoMichael Jul 18, 2021
e4cd17d
ScriptsAtom support math kern
NanoMichael Jul 18, 2021
8d00755
fix int
NanoMichael Jul 18, 2021
68fd239
fix Symbols
NanoMichael Jul 19, 2021
585d2ad
StackAtom fix delta
NanoMichael Jul 20, 2021
95a50bf
add idotsint
NanoMichael Jul 20, 2021
9af203c
add italic correction when process row
NanoMichael Jul 20, 2021
5aebbb4
remove some useless cmd
NanoMichael Jul 21, 2021
d7a43b0
add char to symbol mapping
NanoMichael Jul 22, 2021
2d2f64e
add greek
NanoMichael Jul 22, 2021
7bf9ae9
remove useless cmd
NanoMichael Jul 23, 2021
69b2533
math and text font styles support
NanoMichael Jul 24, 2021
426283d
gather macros
NanoMichael Jul 24, 2021
9f7c913
unrecognized macro
NanoMichael Jul 24, 2021
474df4a
fake symbols
NanoMichael Jul 25, 2021
7de88b8
move macro definations
NanoMichael Jul 25, 2021
117c0a2
add side set support
NanoMichael Jul 26, 2021
626d398
fix prescript
NanoMichael Jul 27, 2021
64bfccc
add simple scripts
NanoMichael Jul 27, 2021
cac9eef
cumulative scripts support
NanoMichael Jul 28, 2021
dc013c1
delimiters
NanoMichael Jul 29, 2021
46ea77a
fix delimiters
NanoMichael Jul 31, 2021
4f29e4b
over/under bar
NanoMichael Jul 31, 2021
4b6ce8a
remove useless includes
NanoMichael Jul 31, 2021
e8617c2
under over arrows
NanoMichael Aug 1, 2021
802b62a
xarrows support
NanoMichael Aug 1, 2021
7b86126
radicals
NanoMichael Aug 1, 2021
983295c
fracs
NanoMichael Aug 5, 2021
94072b9
fix big delimiters
NanoMichael Aug 5, 2021
d54c1ef
center fence
NanoMichael Aug 5, 2021
b040204
binom
NanoMichael Aug 5, 2021
07b1d39
fix fracs
NanoMichael Aug 7, 2021
779cb5b
add sfrac
NanoMichael Aug 7, 2021
e7dfd87
add Dimen
NanoMichael Aug 7, 2021
c1ccc5e
fix preprocess
NanoMichael Aug 7, 2021
1b59099
remove unicode script conversion
NanoMichael Aug 7, 2021
f3ccaa6
remove __decl_clone
NanoMichael Aug 7, 2021
c1eb68f
longdiv
NanoMichael Aug 8, 2021
2c84f93
framed boxes
NanoMichael Aug 8, 2021
65acd24
genfrac
NanoMichael Aug 8, 2021
1021a86
text size
NanoMichael Aug 8, 2021
fa32f94
resize
NanoMichael Aug 8, 2021
4352290
cancel
NanoMichael Aug 8, 2021
d02bd4c
big slash
NanoMichael Aug 8, 2021
219a717
hdotsfor
NanoMichael Aug 8, 2021
201e800
fix intertext
NanoMichael Aug 11, 2021
62cbde0
remove useless code
NanoMichael Aug 12, 2021
7af7ff6
fix scripts
NanoMichael Aug 14, 2021
3e8e656
refactor graphic
NanoMichael Aug 14, 2021
649117a
unrecognized chars
NanoMichael Aug 15, 2021
70ab478
add nextUnicode
NanoMichael Aug 15, 2021
de03fd4
remove wstring
NanoMichael Aug 15, 2021
4953304
emoji support
NanoMichael Aug 15, 2021
8d2235b
zwj and zwnj support
NanoMichael Aug 18, 2021
3b6b91c
remove unused macros
NanoMichael Aug 18, 2021
eff47b9
add logo
NanoMichael Aug 20, 2021
08fa79f
improved error info
NanoMichael Aug 20, 2021
3fcea10
improved log
NanoMichael Aug 20, 2021
907ae74
max overlap when create delim
NanoMichael Aug 24, 2021
f34e958
remove x8
NanoMichael Aug 25, 2021
cb0c833
clean code
NanoMichael Aug 25, 2021
ab19b6d
clean useless code
NanoMichael Aug 26, 2021
427c4de
process continues unicodes
NanoMichael Aug 26, 2021
e220f0f
add clm version
NanoMichael Aug 26, 2021
0dd7bf1
test latinmodern-math
NanoMichael Aug 26, 2021
5530188
fix undertilde
NanoMichael Aug 27, 2021
042f2aa
cfrac displaystyle
NanoMichael Aug 27, 2021
5f67264
fix longdiv
NanoMichael Aug 27, 2021
398f66f
fix top accent
NanoMichael Aug 27, 2021
ff26d72
rename TeXParser to Parser
NanoMichael Aug 28, 2021
4264228
rename
NanoMichael Aug 28, 2021
55fbba2
add log
NanoMichael Aug 28, 2021
a8079b5
draw ? if glyph not found
NanoMichael Aug 28, 2021
5ffa020
move setmathfont to macro_fonts
NanoMichael Aug 30, 2021
b880260
add addmathfont and setmathversion macro
NanoMichael Aug 31, 2021
4933494
add addmainfont
NanoMichael Sep 1, 2021
a4a9c74
remove cedilla and ogonek
NanoMichael Sep 5, 2021
24cb77c
win32 graphics
NanoMichael Sep 6, 2021
b2a58a1
Nabla for win32 compat
NanoMichael Sep 7, 2021
8ee1823
rename params
NanoMichael Sep 7, 2021
d512412
remove useless resources
NanoMichael Sep 8, 2021
180d627
default xits
NanoMichael Sep 8, 2021
2c4e9c3
add -mathfont and -clm options
NanoMichael Sep 8, 2021
beedc0d
remove hardcoded
NanoMichael Sep 9, 2021
31283e1
cleanup build scripts
NanoMichael Sep 9, 2021
bd716f3
optimize show samples
NanoMichael Sep 9, 2021
e779354
doge 🐶
NanoMichael Sep 9, 2021
fc47fbb
default locale
NanoMichael Sep 10, 2021
40c7668
doge 🐶
NanoMichael Sep 9, 2021
f4f122c
QT support
NanoMichael Sep 11, 2021
96179cb
otf2clm refactor
NanoMichael Sep 11, 2021
309fa9a
cleanup code
NanoMichael Sep 11, 2021
d7129a4
add emoji example
NanoMichael Sep 11, 2021
ef33620
meson build: move -std=c++17 to default_options
NanoMichael Sep 12, 2021
01b3ca6
\eveymath support
NanoMichael Sep 13, 2021
cc28e8d
fix SIGSEV when parsing $\displaystyle$
NanoMichael Sep 13, 2021
5a418e3
texStyleOf: return statement
NanoMichael Sep 13, 2021
a0c6475
compat MAC OS
NanoMichael Sep 14, 2021
38dfe85
remove useless resources
NanoMichael Sep 19, 2021
caf47b1
add \clm
NanoMichael Sep 19, 2021
3190957
remove macro 'print' & add time measurement
NanoMichael Sep 20, 2021
2ed7f71
cmake build script add installs
NanoMichael Sep 21, 2021
dc1d8a5
fix error: use of undeclared identifier 'print'
PikachuHy Oct 26, 2021
4040696
update example latex2png
PikachuHy Oct 26, 2021
7672aa5
fix warning: 10 enumeration values not handled in switch: 'ordinary',…
PikachuHy Oct 26, 2021
3957a91
cmake build script add installs
NanoMichael Sep 21, 2021
d4bf1cf
fix: build dll in win32
PikachuHy Nov 18, 2021
c12e1b0
show render duration
NanoMichael Nov 21, 2021
7694225
add raw path support
NanoMichael Jan 3, 2022
d10756a
preserve read clm data from byte buffer interface
NanoMichael Jan 3, 2022
eb7f4c1
add option to compile if use path to render glyph or not
NanoMichael Jan 4, 2022
ebbbafd
optimize code
NanoMichael Jan 4, 2022
bd6e7bf
add runPerf on GTK
NanoMichael Jan 5, 2022
528509c
test render type
NanoMichael Jan 5, 2022
7695c45
qt impl add path drawing support
NanoMichael Jan 6, 2022
75d65ee
add graphic svg
NanoMichael Jan 6, 2022
a7acbc8
optimize source code structure
NanoMichael Jan 8, 2022
3c7a346
refactor platform impl
NanoMichael Jan 9, 2022
d9b0fd1
refactor include
NanoMichael Jan 9, 2022
7ac986e
support for wasm
NanoMichael Jan 9, 2022
a9ca5f9
phase 1: test for parse
NanoMichael Jan 10, 2022
ad930b0
phase 2: implement graphic interface
NanoMichael Jan 11, 2022
94d0733
phase 3: add demo
NanoMichael Jan 16, 2022
6c7177c
fix dpi
NanoMichael Jan 17, 2022
59ada60
add show samples
NanoMichael Jan 17, 2022
2d97f5c
trying to fix draw line
NanoMichael Jan 18, 2022
1fe0f61
bug fix
NanoMichael Jan 18, 2022
c1280ee
support for round rect
NanoMichael Jan 19, 2022
fda0ea3
support for rotate
NanoMichael Jan 19, 2022
832a7c6
demo use ace
NanoMichael Jan 19, 2022
30dcb5d
optimized demo
NanoMichael Jan 19, 2022
e5057b8
change font load style
NanoMichael Jan 20, 2022
a29712b
support for main font
NanoMichael Jan 20, 2022
10a0e25
optimize otf2clm
NanoMichael Jan 22, 2022
67d7d7c
optimized demos
NanoMichael Jan 22, 2022
f011572
fix meson build issues
NanoMichael Jan 22, 2022
5ed8cab
fix github workflow
NanoMichael Jan 22, 2022
6033533
build by cmake: all targets
NanoMichael Jan 22, 2022
3322edc
improved meson files & fixed qt-build and example
sp1ritCS Jan 22, 2022
1a16fdc
local build for ace.js
NanoMichael Jan 23, 2022
11dbe01
fix generate clm data file with single mode
NanoMichael Jan 23, 2022
6cdd755
remove useless code
NanoMichael Jan 23, 2022
f9f0a6d
html demo add text size change event
NanoMichael Jan 23, 2022
ad2a112
meson: implemented gdi support
sp1ritCS Jan 23, 2022
0af0d93
meson: added qt example I've forgot to commit previously ☹️
sp1ritCS Jan 23, 2022
2957a65
support for Win32 buiding
NanoMichael Jan 24, 2022
8af9f16
fix meson build
NanoMichael Jan 24, 2022
5c339ac
add font resources
NanoMichael Jan 25, 2022
0d327ab
optimized cmake build
NanoMichael Jan 25, 2022
226ef05
ci for wasm
NanoMichael Jan 25, 2022
f04d2ed
remove macro CLATEX_CXX17
NanoMichael Jan 25, 2022
3cfaf7b
ci: add publish wasm demo
NanoMichael Jan 25, 2022
89b1af1
ci: remove publish wasm demo
NanoMichael Jan 25, 2022
629be52
support cancel main font
NanoMichael Jan 25, 2022
ae70d93
ci: remove publish wasm demo
NanoMichael Jan 26, 2022
2dddc35
eliminate warning C4267: 'initializing': conversion from 'size_t' to …
PikachuHy Jan 28, 2022
a049383
eliminate warning C4477: 'fprintf' : format string '%u' requires an a…
PikachuHy Jan 28, 2022
2bf07ba
add prebuilt clm data files
NanoMichael Jan 28, 2022
dbc8aac
add cmake build options
PikachuHy Jan 28, 2022
05cff33
fix: build win dll fail
PikachuHy Jan 28, 2022
852beb0
ignore CMakeLists.txt.user
PikachuHy Jan 28, 2022
cf20093
add error info when program exit with 1
PikachuHy Jan 28, 2022
d63a31f
change all NULL to nullptr
PikachuHy Jan 28, 2022
7195ff1
fix build win dll fail
PikachuHy Jan 28, 2022
658edae
we will use c++17 because the code `set(CMAKE_CXX_STANDARD 17)`
PikachuHy Jan 28, 2022
51519b7
moved cairo implementation to cairomm
sp1ritCS Jan 28, 2022
1625bbb
implement cairo (c ptr) interface
sp1ritCS Jan 28, 2022
1037131
dropped cairomm platform
sp1ritCS Jan 28, 2022
7b06ff2
example: gtk: removed cairomm support
sp1ritCS Feb 13, 2022
65086b1
rename namespace tex to tinytex
NanoMichael Feb 15, 2022
89cc80a
rename LATEX_* to TINYTEX_*
NanoMichael Feb 15, 2022
c499bc0
wasm: rename clatex_ suffix to tinytex_
NanoMichael Feb 15, 2022
23a1f7a
rename project to tinytex
NanoMichael Feb 15, 2022
fd86c3a
remove \clm, add \TinyTeX
NanoMichael Feb 16, 2022
d5f54f1
meson build: rename clatexmath to tinytex
NanoMichael Feb 16, 2022
4079997
compile: only export interfaces
NanoMichael Feb 16, 2022
268a7cd
export graphic basic functions
NanoMichael Feb 16, 2022
98c6954
rename LaTeX to TinyTeX
NanoMichael Feb 16, 2022
11171b4
fix build win dll fail
PikachuHy Feb 17, 2022
88994d0
fix build win dll fail
PikachuHy Feb 17, 2022
482995d
fix build Win32Example fail
PikachuHy Feb 17, 2022
1add0ad
rename examples to tinytex-[platform]-example
NanoMichael Feb 17, 2022
a429660
move types defination from utils.h to types.h
NanoMichael Feb 17, 2022
cfca791
add missing headers
NanoMichael Feb 18, 2022
5d0f4e4
reformat gkmm_main.cpp
NanoMichael Feb 19, 2022
8be9768
fix win32 build, remove vcpkg for gdi CI
NanoMichael Feb 19, 2022
16e33c7
fix qt CI issues
NanoMichael Feb 19, 2022
9d9f468
cairo: moved definitions of cairopp functions to source files
sp1ritCS Feb 24, 2022
f7313e9
add .clang-format
PikachuHy Feb 25, 2022
12f463c
implemented full postscript name as part of clm
sp1ritCS Jan 30, 2022
dcdacb7
implemented postscript family name as part of clm
sp1ritCS Jan 30, 2022
d97953e
initial implementation of font sensing
sp1ritCS Jan 30, 2022
434aef6
example: gtk: added support for fontsense autodetection
sp1ritCS Feb 20, 2022
b3775b4
fontsense: msvc std compat
sp1ritCS Feb 20, 2022
7431664
Adopted suggestions from Nano <[email protected]> / commited heresy 😐️
sp1ritCS Feb 20, 2022
5f04ea6
bumped clm major version to 3
sp1ritCS Feb 21, 2022
6afc6d4
fontsense: support for win32 datadir
sp1ritCS Feb 25, 2022
049d07c
move version defination to version.h
NanoMichael Feb 20, 2022
f7337a6
versionize platform backends
NanoMichael Feb 20, 2022
0eff1b2
move RenderBuilder to separate files
NanoMichael Feb 20, 2022
d4397df
use Dimen instead of separated size and unit
NanoMichael Feb 21, 2022
a74de94
move Render and TinyTeX impl to .cpp to hide details from user and ke…
NanoMichael Feb 22, 2022
03a3dd4
move enums from enums.h to types.h
NanoMichael Feb 22, 2022
aa51a5f
fix \text* when with nested styles
NanoMichael Feb 22, 2022
e204d78
optimized code
NanoMichael Feb 24, 2022
7dfc283
wip: add install
NanoMichael Feb 24, 2022
e63c418
reformat code
NanoMichael Feb 25, 2022
bd2497b
rename BinaryReader::read_string to readString
NanoMichael Feb 25, 2022
f0f926c
make auto font find optional
NanoMichael Feb 26, 2022
4828708
move version def to cmake config file
NanoMichael Feb 26, 2022
70db711
move otf config flags from config.h to otfconfig.h
NanoMichael Feb 26, 2022
70b9623
add export.h
NanoMichael Feb 26, 2022
86678bb
rename options.h.in to configs.h.in
NanoMichael Feb 26, 2022
a130f08
fix meson build
NanoMichael Feb 26, 2022
20b651a
fix mistakenly use of Init
NanoMichael Feb 26, 2022
9b94ff7
upgrade clm data version
NanoMichael Feb 26, 2022
a73f45c
meson build: parse versions from project version
NanoMichael Feb 26, 2022
5cf6b98
add TINYTEX_API_VERSION to maintain API and ABI compatibility
NanoMichael Feb 27, 2022
d8f699b
wasm: remove versions
NanoMichael Feb 27, 2022
aad9d91
cmake: add install scripts
NanoMichael Feb 27, 2022
a5104d5
cmake: add tinytex-cairo install scripts
NanoMichael Feb 27, 2022
2bdad0f
cmake: add tinytex_install_* functions
NanoMichael Feb 27, 2022
0b70a6d
rename export.h and config.h to tinytexexport.h and tinytexconfig.h
NanoMichael Feb 28, 2022
a6a8722
qt: add cmake install scripts
NanoMichael Feb 28, 2022
63d3d9c
implemented font style as part of clm
sp1ritCS Mar 3, 2022
4d02e7d
use clm provided fontstyle to map font
sp1ritCS Mar 3, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
meson build: parse versions from project version
NanoMichael committed Feb 27, 2022
commit a73f45c344a8d91b1e9dee31b6efac9376725c25
4 changes: 0 additions & 4 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -126,10 +126,6 @@ target_compile_definitions(tinytex PRIVATE -DGLYPH_RENDER_TYPE=${_GLYPH_RENDER_T
configure_file(config.h.in config.h @ONLY)
target_include_directories(tinytex PUBLIC ${CMAKE_CURRENT_BINARY_DIR})

if (HAVE_AUTO_FONT_FIND)
target_link_libraries(tinytex stdc++fs)
endif ()

set(
TINYTEX_PUBLIC_HEADERS
export.h
7 changes: 4 additions & 3 deletions lib/meson.build
Original file line number Diff line number Diff line change
@@ -39,13 +39,14 @@ src += utils_src
subdir('render')
src += render_src

tinytex_version = meson.project_version().split('.')
configure_file(
input: 'config.h.in',
output: 'config.h',
configuration: {
'PROJECT_VERSION_MAJOR': 1,
'PROJECT_VERSION_MINOR': 0,
'PROJECT_VERSION_PATCH': 0,
'PROJECT_VERSION_MAJOR': tinytex_version[0],
'PROJECT_VERSION_MINOR': tinytex_version[1],
'PROJECT_VERSION_PATCH': tinytex_version[2],
'HAVE_AUTO_FONT_FIND': get_option('HAVE_AUTO_FONT_FIND'),
},
format: 'cmake@'