-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from creecros/creecros-patch-2
CJK Support
- Loading branch information
Showing
7 changed files
with
111 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<div class="panel"> | ||
<?= $this->form->radio('task2pdf_cjk', 'Normal Font set when creating PDFs' , 1, isset($values['task2pdf_cjk'])&& $values['task2pdf_cjk']==1) ?> | ||
<?= $this->form->radio('task2pdf_cjk', 'CJK Font set when creating PDFs' , 2, isset($values['task2pdf_cjk'])&& $values['task2pdf_cjk']==2) ?> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<style> | ||
@font-face { | ||
font-family: 'Droid Sans'; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: url('/plugins/Task2pdf/font/DroidSansFallback.ttf') format('truetype'); | ||
src: url(https://github.com/creecros/Task2pdf/blob/creecros-patch-2/font/DroidSansFallback.ttf?raw=true) format('truetype'); | ||
} | ||
@font-face { | ||
font-family: 'Droid Sans'; | ||
font-style: normal; | ||
font-weight: bold; | ||
src: url('/plugins/Task2pdf/font/DroidSansFallback.ttf') format('truetype'); | ||
src: url(https://github.com/creecros/Task2pdf/blob/creecros-patch-2/font/DroidSansFallback.ttf?raw=true) format('truetype'); | ||
} | ||
@font-face { | ||
font-family: 'Droid Sans'; | ||
font-style: normal; | ||
font-weight: bold; | ||
font-style: italic; | ||
src: url('/plugins/Task2pdf/font/DroidSansFallback.ttf') format('truetype'); | ||
src: url(https://github.com/creecros/Task2pdf/blob/creecros-patch-2/font/DroidSansFallback.ttf?raw=true) format('truetype'); | ||
} | ||
* { | ||
font-family: Droid Sans, DejaVu Sans, sans-serif; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<section id="main" class="public-task"> | ||
<a style="display: inline-block; font-size:12px; text-align: left; width: 100%; word-wrap: break-word;"> | ||
<?= $this->render('Task2pdf:printlayout/details', array( | ||
'task' => $task, | ||
'tags' => $tags, | ||
'project' => $project, | ||
'editable' => false, | ||
)) ?> | ||
</a> | ||
<br> | ||
<a style=" display: inline-block; font-size:14px; text-align: left; width: 95%; word-wrap: break-word;"> | ||
<?php if (!empty($task['description'])): ?> | ||
<?= $this->render('Task2pdf:printlayout/description', array( | ||
'task' => $task, | ||
'project' => $project, | ||
'is_public' => true, | ||
)) ?> | ||
<?php endif ?> | ||
<?php if(!empty($subtasks)): ?> | ||
<?= $this->render('Task2pdf:printlayout/subtasks', array( | ||
'task' => $task, | ||
'subtasks' => $subtasks, | ||
'editable' => false | ||
)) ?> | ||
<?php endif ?> | ||
<?php if (!empty($files) || !empty($images)): ?> | ||
<?= $this->render('Task2pdf:printlayout/files', array( | ||
'task' => $task, | ||
'files' => $files, | ||
'images' => $images | ||
)) ?> | ||
<?php endif ?> | ||
<?php if (!empty($links)): ?> | ||
<?= $this->render('Task2pdf:printlayout/internal_links', array( | ||
'task' => $task, | ||
'links' => $links, | ||
'project' => $project, | ||
'editable' => false, | ||
'is_public' => true, | ||
)) ?> | ||
<?php endif ?> | ||
<?php if (!empty($comments)): ?> | ||
<?= $this->render('Task2pdf:printlayout/comments', array( | ||
'task' => $task, | ||
'comments' => $comments, | ||
'project' => $project, | ||
'editable' => false, | ||
'is_public' => true, | ||
)) ?> | ||
<?php endif ?> | ||
</a> | ||
</section> | ||
</body> | ||
</html> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.