瀏覽代碼

Добавил шрифт geo_1

Book Pauk 6 年之前
父節點
當前提交
c30cf67b50
共有 4 個文件被更改,包括 8 次插入1 次删除
  1. 6 0
      client/components/App.vue
  2. 2 1
      client/components/Reader/TextPage/TextPage.vue
  3. 二進制
      client/components/fonts/geo_1.ttf
  4. 二進制
      client/components/fonts/geo_1.woff

+ 6 - 0
client/components/App.vue

@@ -297,4 +297,10 @@ body, html, #app {
   src: url('fonts/arimo.woff2') format('woff2');
 }
 
+@font-face {
+  font-family: 'GEO_1';
+  src: url('fonts/geo_1.woff') format('woff'),
+       url('fonts/geo_1.ttf') format('truetype');
+}
+
 </style>

+ 2 - 1
client/components/Reader/TextPage/TextPage.vue

@@ -105,6 +105,7 @@ class TextPage extends Vue {
             Rubik: 0,
             Avrile: -10,
             Arimo: 0,
+            GEO_1: 10,
         }
         if (!this.fontShifts.hasOwnProperty(this.fontName))
             this.fontShifts[this.fontName] = this.fontVertShift;
@@ -235,7 +236,7 @@ class TextPage extends Vue {
         this.backgroundColor = '#478355';
         this.fontStyle = '';// 'bold','italic'
         this.fontSize = 35;// px
-        this.fontName = 'Arimo';
+        this.fontName = 'GEO_1';
         this.fontCssUrl = '';
         this.fontVertShift = 0;
 

二進制
client/components/fonts/geo_1.ttf


二進制
client/components/fonts/geo_1.woff