Skip to content

Commit

Permalink
move assets to another directory
Browse files Browse the repository at this point in the history
  • Loading branch information
MartkCz committed May 4, 2022
1 parent 6b8882e commit f713108
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 4 deletions.
26 changes: 26 additions & 0 deletions assets/font/Montserrat-Bold.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
$type = 'TrueType';
$name = 'Montserrat-Bold';
$desc = array('Ascent'=>968,'Descent'=>-251,'CapHeight'=>700,'Flags'=>32,'FontBBox'=>'[-882 -266 1679 1076]','ItalicAngle'=>0,'StemV'=>120,'MissingWidth'=>587);
$up = -75;
$ut = 50;
$cw = array(
chr(0)=>587,chr(1)=>587,chr(2)=>587,chr(3)=>587,chr(4)=>587,chr(5)=>587,chr(6)=>587,chr(7)=>587,chr(8)=>587,chr(9)=>587,chr(10)=>587,chr(11)=>587,chr(12)=>587,chr(13)=>587,chr(14)=>587,chr(15)=>587,chr(16)=>587,chr(17)=>587,chr(18)=>587,chr(19)=>587,chr(20)=>587,chr(21)=>587,
chr(22)=>587,chr(23)=>587,chr(24)=>587,chr(25)=>587,chr(26)=>587,chr(27)=>587,chr(28)=>587,chr(29)=>587,chr(30)=>587,chr(31)=>587,' '=>283,'!'=>289,'"'=>437,'#'=>720,'$'=>638,'%'=>877,'&'=>728,'\''=>230,'('=>357,')'=>358,'*'=>434,'+'=>599,
','=>262,'-'=>386,'.'=>262,'/'=>392,'0'=>679,'1'=>392,'2'=>590,'3'=>592,'4'=>689,'5'=>595,'6'=>637,'7'=>620,'8'=>660,'9'=>637,':'=>262,';'=>262,'<'=>599,'='=>599,'>'=>599,'?'=>589,'@'=>1035,'A'=>766,
'B'=>765,'C'=>733,'D'=>826,'E'=>671,'F'=>639,'G'=>771,'H'=>808,'I'=>328,'J'=>541,'K'=>740,'L'=>604,'M'=>955,'N'=>808,'O'=>844,'P'=>732,'Q'=>844,'R'=>735,'S'=>638,'T'=>618,'U'=>788,'V'=>746,'W'=>1163,
'X'=>714,'Y'=>676,'Z'=>671,'['=>368,'\\'=>392,']'=>368,'^'=>600,'_'=>500,'`'=>600,'a'=>617,'b'=>690,'c'=>591,'d'=>692,'e'=>631,'f'=>387,'g'=>700,'h'=>691,'i'=>301,'j'=>307,'k'=>660,'l'=>301,'m'=>1049,
'n'=>691,'o'=>655,'p'=>690,'q'=>690,'r'=>431,'s'=>531,'t'=>435,'u'=>687,'v'=>598,'w'=>937,'x'=>595,'y'=>598,'z'=>543,'{'=>391,'|'=>309,'}'=>391,'~'=>599,chr(127)=>587,chr(128)=>820,chr(129)=>587,chr(130)=>262,chr(131)=>587,
chr(132)=>498,chr(133)=>798,chr(134)=>591,chr(135)=>591,chr(136)=>587,chr(137)=>1258,chr(138)=>638,chr(139)=>342,chr(140)=>638,chr(141)=>618,chr(142)=>671,chr(143)=>671,chr(144)=>587,chr(145)=>262,chr(146)=>262,chr(147)=>498,chr(148)=>498,chr(149)=>358,chr(150)=>500,chr(151)=>1000,chr(152)=>587,chr(153)=>1046,
chr(154)=>531,chr(155)=>342,chr(156)=>531,chr(157)=>435,chr(158)=>543,chr(159)=>543,chr(160)=>283,chr(161)=>600,chr(162)=>600,chr(163)=>617,chr(164)=>700,chr(165)=>766,chr(166)=>309,chr(167)=>522,chr(168)=>600,chr(169)=>785,chr(170)=>638,chr(171)=>568,chr(172)=>599,chr(173)=>386,chr(174)=>785,chr(175)=>671,
chr(176)=>418,chr(177)=>599,chr(178)=>600,chr(179)=>327,chr(180)=>600,chr(181)=>690,chr(182)=>686,chr(183)=>302,chr(184)=>600,chr(185)=>617,chr(186)=>531,chr(187)=>568,chr(188)=>604,chr(189)=>600,chr(190)=>301,chr(191)=>543,chr(192)=>735,chr(193)=>766,chr(194)=>766,chr(195)=>766,chr(196)=>766,chr(197)=>604,
chr(198)=>733,chr(199)=>733,chr(200)=>733,chr(201)=>671,chr(202)=>671,chr(203)=>671,chr(204)=>671,chr(205)=>328,chr(206)=>328,chr(207)=>826,chr(208)=>839,chr(209)=>808,chr(210)=>808,chr(211)=>844,chr(212)=>844,chr(213)=>844,chr(214)=>844,chr(215)=>599,chr(216)=>735,chr(217)=>788,chr(218)=>788,chr(219)=>788,
chr(220)=>788,chr(221)=>676,chr(222)=>618,chr(223)=>693,chr(224)=>431,chr(225)=>617,chr(226)=>617,chr(227)=>617,chr(228)=>617,chr(229)=>301,chr(230)=>591,chr(231)=>591,chr(232)=>591,chr(233)=>631,chr(234)=>631,chr(235)=>631,chr(236)=>631,chr(237)=>301,chr(238)=>301,chr(239)=>692,chr(240)=>692,chr(241)=>691,
chr(242)=>691,chr(243)=>655,chr(244)=>655,chr(245)=>655,chr(246)=>655,chr(247)=>599,chr(248)=>431,chr(249)=>687,chr(250)=>687,chr(251)=>687,chr(252)=>687,chr(253)=>598,chr(254)=>435,chr(255)=>600);
$enc = 'cp1250';
$diff = '131 /.notdef 136 /.notdef 140 /Sacute /Tcaron 143 /Zacute 152 /.notdef 156 /sacute /tcaron 159 /zacute 161 /caron /breve /Lslash 165 /Aogonek 170 /Scedilla 175 /Zdotaccent 178 /ogonek /lslash 185 /aogonek /scedilla 188 /Lcaron /hungarumlaut /lcaron /zdotaccent /Racute 195 /Abreve 197 /Lacute /Cacute 200 /Ccaron 202 /Eogonek 204 /Ecaron 207 /Dcaron /Dcroat /Nacute /Ncaron 213 /Ohungarumlaut 216 /Rcaron /Uring 219 /Uhungarumlaut 222 /Tcommaaccent 224 /racute 227 /abreve 229 /lacute /cacute 232 /ccaron 234 /eogonek 236 /ecaron 239 /dcaron /dcroat /nacute /ncaron 245 /ohungarumlaut 248 /rcaron /uring 251 /uhungarumlaut 254 /tcommaaccent /dotaccent';
$uv = array(0=>array(0,128),128=>8364,130=>8218,132=>8222,133=>8230,134=>array(8224,2),137=>8240,138=>352,139=>8249,140=>346,141=>356,142=>381,143=>377,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),153=>8482,154=>353,155=>8250,156=>347,157=>357,158=>382,159=>378,160=>160,161=>711,162=>728,163=>321,164=>164,165=>260,166=>array(166,4),170=>350,171=>array(171,4),175=>379,176=>array(176,2),178=>731,179=>322,180=>array(180,5),185=>261,186=>351,187=>187,188=>317,189=>733,190=>318,191=>380,192=>340,193=>array(193,2),195=>258,196=>196,197=>313,198=>262,199=>199,200=>268,201=>201,202=>280,203=>203,204=>282,205=>array(205,2),207=>270,208=>272,209=>323,210=>327,211=>array(211,2),213=>336,214=>array(214,2),216=>344,217=>366,218=>218,219=>368,220=>array(220,2),222=>354,223=>223,224=>341,225=>array(225,2),227=>259,228=>228,229=>314,230=>263,231=>231,232=>269,233=>233,234=>281,235=>235,236=>283,237=>array(237,2),239=>271,240=>273,241=>324,242=>328,243=>array(243,2),245=>337,246=>array(246,2),248=>345,249=>367,250=>250,251=>369,252=>array(252,2),254=>355,255=>729);
$file = 'Montserrat-Bold.z';
$originalsize = 28924;
$subsetted = true;
?>
Binary file added assets/font/Montserrat-Bold.ttf
Binary file not shown.
Binary file added assets/font/Montserrat-Bold.z
Binary file not shown.
26 changes: 26 additions & 0 deletions assets/font/Montserrat-Regular.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
$type = 'TrueType';
$name = 'Montserrat-Regular';
$desc = array('Ascent'=>968,'Descent'=>-251,'CapHeight'=>700,'Flags'=>32,'FontBBox'=>'[-823 -262 1586 1043]','ItalicAngle'=>0,'StemV'=>70,'MissingWidth'=>587);
$up = -75;
$ut = 50;
$cw = array(
chr(0)=>587,chr(1)=>587,chr(2)=>587,chr(3)=>587,chr(4)=>587,chr(5)=>587,chr(6)=>587,chr(7)=>587,chr(8)=>587,chr(9)=>587,chr(10)=>587,chr(11)=>587,chr(12)=>587,chr(13)=>587,chr(14)=>587,chr(15)=>587,chr(16)=>587,chr(17)=>587,chr(18)=>587,chr(19)=>587,chr(20)=>587,chr(21)=>587,
chr(22)=>587,chr(23)=>587,chr(24)=>587,chr(25)=>587,chr(26)=>587,chr(27)=>587,chr(28)=>587,chr(29)=>587,chr(30)=>587,chr(31)=>587,' '=>262,'!'=>260,'"'=>373,'#'=>696,'$'=>615,'%'=>829,'&'=>669,'\''=>202,'('=>329,')'=>329,'*'=>386,'+'=>575,
','=>212,'-'=>382,'.'=>212,'/'=>335,'0'=>662,'1'=>361,'2'=>568,'3'=>564,'4'=>661,'5'=>566,'6'=>609,'7'=>589,'8'=>638,'9'=>609,':'=>212,';'=>212,'<'=>575,'='=>575,'>'=>575,'?'=>567,'@'=>1033,'A'=>717,
'B'=>754,'C'=>719,'D'=>826,'E'=>669,'F'=>633,'G'=>773,'H'=>813,'I'=>302,'J'=>501,'K'=>711,'L'=>589,'M'=>955,'N'=>813,'O'=>839,'P'=>718,'Q'=>839,'R'=>723,'S'=>615,'T'=>574,'U'=>792,'V'=>698,'W'=>1111,
'X'=>656,'Y'=>635,'Z'=>651,'['=>318,'\\'=>335,']'=>318,'^'=>576,'_'=>500,'`'=>600,'a'=>590,'b'=>678,'c'=>563,'d'=>678,'e'=>604,'f'=>339,'g'=>686,'h'=>677,'i'=>269,'j'=>274,'k'=>601,'l'=>269,'m'=>1061,
'n'=>677,'o'=>627,'p'=>678,'q'=>678,'r'=>401,'s'=>489,'t'=>406,'u'=>673,'v'=>542,'w'=>879,'x'=>534,'y'=>542,'z'=>511,'{'=>334,'|'=>295,'}'=>334,'~'=>575,chr(127)=>587,chr(128)=>802,chr(129)=>587,chr(130)=>212,chr(131)=>587,
chr(132)=>382,chr(133)=>647,chr(134)=>547,chr(135)=>547,chr(136)=>587,chr(137)=>1190,chr(138)=>615,chr(139)=>299,chr(140)=>615,chr(141)=>574,chr(142)=>651,chr(143)=>651,chr(144)=>587,chr(145)=>212,chr(146)=>212,chr(147)=>382,chr(148)=>382,chr(149)=>295,chr(150)=>500,chr(151)=>1000,chr(152)=>587,chr(153)=>1021,
chr(154)=>489,chr(155)=>299,chr(156)=>489,chr(157)=>406,chr(158)=>511,chr(159)=>511,chr(160)=>262,chr(161)=>600,chr(162)=>600,chr(163)=>594,chr(164)=>700,chr(165)=>717,chr(166)=>295,chr(167)=>490,chr(168)=>600,chr(169)=>809,chr(170)=>615,chr(171)=>477,chr(172)=>575,chr(173)=>382,chr(174)=>809,chr(175)=>651,
chr(176)=>419,chr(177)=>575,chr(178)=>600,chr(179)=>279,chr(180)=>600,chr(181)=>678,chr(182)=>632,chr(183)=>252,chr(184)=>600,chr(185)=>590,chr(186)=>489,chr(187)=>477,chr(188)=>589,chr(189)=>600,chr(190)=>269,chr(191)=>511,chr(192)=>723,chr(193)=>717,chr(194)=>717,chr(195)=>717,chr(196)=>717,chr(197)=>589,
chr(198)=>719,chr(199)=>719,chr(200)=>719,chr(201)=>669,chr(202)=>669,chr(203)=>669,chr(204)=>669,chr(205)=>302,chr(206)=>302,chr(207)=>826,chr(208)=>831,chr(209)=>813,chr(210)=>813,chr(211)=>839,chr(212)=>839,chr(213)=>839,chr(214)=>839,chr(215)=>575,chr(216)=>723,chr(217)=>792,chr(218)=>792,chr(219)=>792,
chr(220)=>792,chr(221)=>635,chr(222)=>574,chr(223)=>668,chr(224)=>401,chr(225)=>590,chr(226)=>590,chr(227)=>590,chr(228)=>590,chr(229)=>269,chr(230)=>563,chr(231)=>563,chr(232)=>563,chr(233)=>604,chr(234)=>604,chr(235)=>604,chr(236)=>604,chr(237)=>269,chr(238)=>269,chr(239)=>678,chr(240)=>678,chr(241)=>677,
chr(242)=>677,chr(243)=>627,chr(244)=>627,chr(245)=>627,chr(246)=>627,chr(247)=>575,chr(248)=>401,chr(249)=>673,chr(250)=>673,chr(251)=>673,chr(252)=>673,chr(253)=>542,chr(254)=>406,chr(255)=>600);
$enc = 'cp1250';
$diff = '131 /.notdef 136 /.notdef 140 /Sacute /Tcaron 143 /Zacute 152 /.notdef 156 /sacute /tcaron 159 /zacute 161 /caron /breve /Lslash 165 /Aogonek 170 /Scedilla 175 /Zdotaccent 178 /ogonek /lslash 185 /aogonek /scedilla 188 /Lcaron /hungarumlaut /lcaron /zdotaccent /Racute 195 /Abreve 197 /Lacute /Cacute 200 /Ccaron 202 /Eogonek 204 /Ecaron 207 /Dcaron /Dcroat /Nacute /Ncaron 213 /Ohungarumlaut 216 /Rcaron /Uring 219 /Uhungarumlaut 222 /Tcommaaccent 224 /racute 227 /abreve 229 /lacute /cacute 232 /ccaron 234 /eogonek 236 /ecaron 239 /dcaron /dcroat /nacute /ncaron 245 /ohungarumlaut 248 /rcaron /uring 251 /uhungarumlaut 254 /tcommaaccent /dotaccent';
$uv = array(0=>array(0,128),128=>8364,130=>8218,132=>8222,133=>8230,134=>array(8224,2),137=>8240,138=>352,139=>8249,140=>346,141=>356,142=>381,143=>377,145=>array(8216,2),147=>array(8220,2),149=>8226,150=>array(8211,2),153=>8482,154=>353,155=>8250,156=>347,157=>357,158=>382,159=>378,160=>160,161=>711,162=>728,163=>321,164=>164,165=>260,166=>array(166,4),170=>350,171=>array(171,4),175=>379,176=>array(176,2),178=>731,179=>322,180=>array(180,5),185=>261,186=>351,187=>187,188=>317,189=>733,190=>318,191=>380,192=>340,193=>array(193,2),195=>258,196=>196,197=>313,198=>262,199=>199,200=>268,201=>201,202=>280,203=>203,204=>282,205=>array(205,2),207=>270,208=>272,209=>323,210=>327,211=>array(211,2),213=>336,214=>array(214,2),216=>344,217=>366,218=>218,219=>368,220=>array(220,2),222=>354,223=>223,224=>341,225=>array(225,2),227=>259,228=>228,229=>314,230=>263,231=>231,232=>269,233=>233,234=>281,235=>235,236=>283,237=>array(237,2),239=>271,240=>273,241=>324,242=>328,243=>array(243,2),245=>337,246=>array(246,2),248=>345,249=>367,250=>250,251=>369,252=>array(252,2),254=>355,255=>729);
$file = 'Montserrat-Regular.z';
$originalsize = 28276;
$subsetted = true;
?>
Binary file added assets/font/Montserrat-Regular.ttf
Binary file not shown.
Binary file added assets/font/Montserrat-Regular.z
Binary file not shown.
4 changes: 2 additions & 2 deletions src/Templates/ParaisoTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class ParaisoTemplate extends Template
public function __construct(?ITranslator $translator = null)
{
$renderer = new PdfSvg();
$renderer->addFont('Montserrat', __DIR__ . '/assets/font/Montserrat-Regular.php')
->addFont('Montserrat', __DIR__ . '/assets/font/Montserrat-Bold.php', 'bold');
$renderer->addFont('Montserrat', __DIR__ . '/../../assets/font/Montserrat-Regular.php')
->addFont('Montserrat', __DIR__ . '/../../assets/font/Montserrat-Bold.php', 'bold');

$this->colors = [
'text' => Color::fromString('#141618'),
Expand Down
4 changes: 2 additions & 2 deletions src/Templates/TuroisoTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class TuroisoTemplate extends Template
public function __construct(?ITranslator $translator = null)
{
$renderer = new PdfSvg();
$renderer->addFont('Montserrat', __DIR__ . '/assets/font/Montserrat-Regular.php')
->addFont('Montserrat', __DIR__ . '/assets/font/Montserrat-Bold.php', 'bold');
$renderer->addFont('Montserrat', __DIR__ . '/../../assets/font/Montserrat-Regular.php')
->addFont('Montserrat', __DIR__ . '/../../assets/font/Montserrat-Bold.php', 'bold');

$this->translator = $translator ?? new TuroisoTemplateTranslator();

Expand Down

0 comments on commit f713108

Please sign in to comment.