mirror of https://github.com/odrling/Aegisub
![]() Previously, when reading font data, we only set FaceName to the matched font. When we are using some font with special font weight (e.g. @Source Han Sans J Heavy), if we do not correct the font weight in the LOGFONTW struct, then subsequent call to get_font_data will fall back to default font. This causes wrongly matching Arial.ttf to any font that does not provide standard font weights. Instead of only correcting FaceName using the matched font, we simply use the first matched font, thus the FaceName, Weight, CharSet, etc. will all be correct. This also eliminates the memcpy. |
||
---|---|---|
.nuget | ||
automation | ||
build | ||
cmake | ||
docs | ||
libaegisub | ||
m4macros | ||
packages | ||
po | ||
src | ||
tests | ||
tools | ||
vendor | ||
.gitignore | ||
.gitmodules | ||
.travis.yml | ||
Aegisub.sln | ||
CMakeLists.test.txt | ||
CMakeLists.txt | ||
LICENCE | ||
Makefile | ||
Makefile.inc.in | ||
Makefile.target | ||
README.md | ||
acinclude.m4 | ||
autogen.sh | ||
config.guess | ||
config.sub | ||
configure.ac | ||
header.mk | ||
install-sh |
README.md
Aegisub
For binaries and general information see the homepage.
The bug tracker can be found at https://github.com/Aegisub/Aegisub/issues .
Support is available on IRC ( irc://irc.rizon.net/aegisub ).
Building Aegisub
Prerequisites:
- CMake 3.14 or later (or you can use an older version by editing the first line in CMakeLists.txt, and download the missing
cmake/FindFontconfig.cmake
from here), - Any compiling toolchain supported by CMake,
- All required dependencies, namely
libass
,Boost
(with ICU support),OpenGL
,libicu
,wxWidgets
,zlib
. Additionally,libiconv
is required on non-POSIX systems.fontconfig
is required on non-Windows systems. - Any optional dependencies, namely
ALSA
,FFMS2
,FFTW
,Hunspell
,OpenAL
,uchardet
.
Building:
- If you decided to build from source:
git clone https://github.com/wangqr/Aegisub.git # No --recursive is needed
cd Aegisub
./build/version.sh . # This will generate build/git_version.h
- Make an empty directory to hold build outputs:
mkdir build-dir
- Build the project using CMake. Use either cmake-gui, or the command line:
cd build-dir
cmake ..
make
Updating Moonscript
From within the Moonscript repository, run bin/moon bin/splat.moon -l moonscript moonscript/ > bin/moonscript.lua
.
Open the newly created bin/moonscript.lua
, and within it make the following changes:
- Prepend the final line of the file,
package.preload["moonscript"]()
, with areturn
, producingreturn package.preload["moonscript"]()
. - Within the function at
package.preload['moonscript.base']
, remove references tomoon_loader
,insert_loader
, andremove_loader
. This means removing their declarations, definitions, and entries in the returned table. - Within the function at
package.preload['moonscript']
, remove the line_with_0.insert_loader()
.
The file is now ready for use, to be placed in automation/include
within the Aegisub repo.
License
All files in this repository are licensed under various GPL-compatible BSD-style licenses; see LICENCE and the individual source files for more information. The official Windows build is GPLv2 due to including fftw3.