From c419923427cc4486f179119d82e83fbb2f1365af Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Mon, 23 May 2022 09:51:53 +0200 Subject: [PATCH] Test bitmap fonts --- tests/draw/test_text.py | 28 ++++++++++++++++++++++++++++ tests/resources/weasyprint.otb | Bin 0 -> 1568 bytes 2 files changed, 28 insertions(+) create mode 100644 tests/resources/weasyprint.otb diff --git a/tests/draw/test_text.py b/tests/draw/test_text.py index a9c31fc35..b59757f98 100644 --- a/tests/draw/test_text.py +++ b/tests/draw/test_text.py @@ -743,3 +743,31 @@ def test_tabulation_character(assert_pixels): }
a	b
''') + + +def test_otb_font(assert_pixels): + assert_pixels(''' + ____________________ + __RR______RR________ + __RR__RR__RR________ + __RR__RR__RR________ + ____________________ + ____________________ + ''', ''' + + AaA''') diff --git a/tests/resources/weasyprint.otb b/tests/resources/weasyprint.otb new file mode 100644 index 0000000000000000000000000000000000000000..9a244cc6bd9d86925e97ddc2aee5dc9ab8b41111 GIT binary patch literal 1568 zcmdT_O=uHA6#iy*5^I002n8v!R1YGgZnsvXc!;sBQUwD_#9rEMk~V=P8|Q$rB<9E-pUhmn*xS>wO?;R5@wMxx-CV}Y0pc?8T)yhn@yJ>uUgelxtgI}M zr&!&3E)~7P;GKcjRNrx&Es?OMmso5Fo!RbTwpbfo9}F7%2_k)R5DL0xNv?vyFTm3g zqBVFMJl*jxSdTcE&a_<>s-eW2G2U<0Is8rZ^Zp;C7thB;V3cMd{~%lq1pwj^LEhB|Gqn(Jjni&gcq5*f4qm$AoS4B!)y5 zSu9~56_k;OjRJgB;Stqp)hiR;M3Fm9tnf@Dv}lnmdd-z=qgo&#%kYmOT-nty#!)9y;BVqnpL$26pmi?OTI3vT3 zLt?)usXh1E6(to{$-Mc&OMNf%{He5s9c3wge{2cuC6ijE?&8CB~JJ6HE_ns13dpCzkt+fl8+jyXj H`OokNmzTIM literal 0 HcmV?d00001