mirror of
https://github.com/koreader/koreader
synced 2024-11-11 19:11:14 +00:00
add dirty hack for child node font settings.
This commit is contained in:
parent
1ff8cfd299
commit
c961fbd515
4
Makefile
4
Makefile
@ -138,6 +138,10 @@ fetchthirdparty:
|
|||||||
# CREngine patch: disable fontconfig
|
# CREngine patch: disable fontconfig
|
||||||
grep USE_FONTCONFIG $(CRENGINEDIR)/crengine/include/crsetup.h && grep -v USE_FONTCONFIG $(CRENGINEDIR)/crengine/include/crsetup.h > /tmp/new && mv /tmp/new $(CRENGINEDIR)/crengine/include/crsetup.h || echo "USE_FONTCONFIG already disabled"
|
grep USE_FONTCONFIG $(CRENGINEDIR)/crengine/include/crsetup.h && grep -v USE_FONTCONFIG $(CRENGINEDIR)/crengine/include/crsetup.h > /tmp/new && mv /tmp/new $(CRENGINEDIR)/crengine/include/crsetup.h || echo "USE_FONTCONFIG already disabled"
|
||||||
test -f mupdf-thirdparty.zip || wget http://www.mupdf.com/download/mupdf-thirdparty.zip
|
test -f mupdf-thirdparty.zip || wget http://www.mupdf.com/download/mupdf-thirdparty.zip
|
||||||
|
# CREngine patch: change child nodes' type face
|
||||||
|
# @TODO replace this dirty hack 24.04 2012 (houqp)
|
||||||
|
cd kpvcrlib/crengine/crengine/src && \
|
||||||
|
patch -N -p0 < ../../../lvrend_node_type_face.patch
|
||||||
unzip mupdf-thirdparty.zip -d mupdf
|
unzip mupdf-thirdparty.zip -d mupdf
|
||||||
# dirty patch in MuPDF's thirdparty liby for CREngine
|
# dirty patch in MuPDF's thirdparty liby for CREngine
|
||||||
cd mupdf/thirdparty/jpeg-*/ && \
|
cd mupdf/thirdparty/jpeg-*/ && \
|
||||||
|
12
kpvcrlib/lvrend_node_type_face.patch
Normal file
12
kpvcrlib/lvrend_node_type_face.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
--- lvrend.cpp 2012-04-24 10:27:33.000000000 +0800
|
||||||
|
+++ lvrend-patched.cpp 2012-04-24 10:27:28.000000000 +0800
|
||||||
|
@@ -1902,7 +1902,8 @@
|
||||||
|
UPDATE_STYLE_FIELD( font_style, css_fs_inherit );
|
||||||
|
UPDATE_STYLE_FIELD( font_weight, css_fw_inherit );
|
||||||
|
UPDATE_STYLE_FIELD( font_family, css_ff_inherit );
|
||||||
|
- UPDATE_STYLE_FIELD( font_name, "" );
|
||||||
|
+ //UPDATE_STYLE_FIELD( font_name, "" );
|
||||||
|
+ pstyle->font_name = parent_font.get()->getTypeFace();
|
||||||
|
UPDATE_LEN_FIELD( font_size );
|
||||||
|
//UPDATE_LEN_FIELD( text_indent );
|
||||||
|
spreadParent( pstyle->text_indent, parent_style->text_indent );
|
Loading…
Reference in New Issue
Block a user