From b2c7a10238d3132730adedb3796b2b20e468188b Mon Sep 17 00:00:00 2001 From: sD Date: Tue, 9 Jun 2020 21:30:04 +0200 Subject: add font --- webAO/styles/igiari/Igiari.eot | Bin 0 -> 417604 bytes webAO/styles/igiari/Igiari.otf | Bin 0 -> 78620 bytes webAO/styles/igiari/Igiari.svg | 1936 +++++++++++++++++++++++++++++++++++++++ webAO/styles/igiari/Igiari.ttf | Bin 0 -> 417444 bytes webAO/styles/igiari/Igiari.woff | Bin 0 -> 97776 bytes webAO/styles/igiari/license.txt | 8 + webAO/styles/igiari/readme.txt | 31 + webAO/styles/igiari/webfont.css | 21 + 8 files changed, 1996 insertions(+) create mode 100644 webAO/styles/igiari/Igiari.eot create mode 100644 webAO/styles/igiari/Igiari.otf create mode 100644 webAO/styles/igiari/Igiari.svg create mode 100644 webAO/styles/igiari/Igiari.ttf create mode 100644 webAO/styles/igiari/Igiari.woff create mode 100644 webAO/styles/igiari/license.txt create mode 100644 webAO/styles/igiari/readme.txt create mode 100644 webAO/styles/igiari/webfont.css (limited to 'webAO') diff --git a/webAO/styles/igiari/Igiari.eot b/webAO/styles/igiari/Igiari.eot new file mode 100644 index 0000000..5b01deb Binary files /dev/null and b/webAO/styles/igiari/Igiari.eot differ diff --git a/webAO/styles/igiari/Igiari.otf b/webAO/styles/igiari/Igiari.otf new file mode 100644 index 0000000..1e88062 Binary files /dev/null and b/webAO/styles/igiari/Igiari.otf differ diff --git a/webAO/styles/igiari/Igiari.svg b/webAO/styles/igiari/Igiari.svg new file mode 100644 index 0000000..8f889ae --- /dev/null +++ b/webAO/styles/igiari/Igiari.svg @@ -0,0 +1,1936 @@ + + + + +Created by FontForge 20090622 at Mon Apr 18 23:31:26 2016 + By deploy user +Copyright (c) 2014 Caveras / Cliff Modes + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/webAO/styles/igiari/Igiari.ttf b/webAO/styles/igiari/Igiari.ttf new file mode 100644 index 0000000..c7c1cfc Binary files /dev/null and b/webAO/styles/igiari/Igiari.ttf differ diff --git a/webAO/styles/igiari/Igiari.woff b/webAO/styles/igiari/Igiari.woff new file mode 100644 index 0000000..1118f99 Binary files /dev/null and b/webAO/styles/igiari/Igiari.woff differ diff --git a/webAO/styles/igiari/license.txt b/webAO/styles/igiari/license.txt new file mode 100644 index 0000000..a13fa44 --- /dev/null +++ b/webAO/styles/igiari/license.txt @@ -0,0 +1,8 @@ +License for Igiari font + +This font was created by Caveras with FontStruct and is licensed +under a Creative Commons Attribution Non-commercial Share Alike +license. + +http://fontstruct.com/fontstructors/caveras +http://creativecommons.org/licenses/by-nc-sa/3.0/ \ No newline at end of file diff --git a/webAO/styles/igiari/readme.txt b/webAO/styles/igiari/readme.txt new file mode 100644 index 0000000..63030c5 --- /dev/null +++ b/webAO/styles/igiari/readme.txt @@ -0,0 +1,31 @@ +Igiari by Caveras - based on the original main text pixel font used in +the Ace Attorney video game series for Game Boy Advance and Nintendo DS +(Capcom, 2001-2011). + +The font file in this archive was created by Caveras using FontStruct - +the free, online font-building tool. This font has a homepage where this +archive and other versions may be found: +http://fontstruct.com/fontstructors/caveras + +It is also distributed over Caveras' website: http://www.caveras.net + +Try FontStruct at http://fontstruct.com - It’s easy and it’s fun. + +NOTE FOR FLASH USERS: FontStruct fonts (FontStructions) are optimized for +Flash. The font in this archive is a pixel font and best displayed at a +font-size of 8 and multiples of this number. + +FontStruct is sponsored by FontShop. Visit them at http://fontshop.com. +FontShop is the original independent font retailer. We’ve been around since +the dawn of digital type. Whether you need the right font or need to create +the right font from scratch, let our 23 years of experience work for you. + +FontStruct is copyright © 2013-2014 Rob Meek + +LEGAL NOTICE: +In using this font you must comply with the licensing terms described in the +file “license.txt” included with this archive. If you redistribute the font +file in this archive, it must be accompanied by all the other files from this +archive, including this one. + +Copyright © 2014 Caveras / Cliff Modes. \ No newline at end of file diff --git a/webAO/styles/igiari/webfont.css b/webAO/styles/igiari/webfont.css new file mode 100644 index 0000000..88f643a --- /dev/null +++ b/webAO/styles/igiari/webfont.css @@ -0,0 +1,21 @@ +/* Webfont CSS setup for Igiari by Caveras */ + +@font-face { + font-family:'Igiari'; + src:url('Igiari.eot'); + src:url('Igiari.eot?#iefix') format('embedded-opentype'), + url('Igiari.woff') format('woff'), + url('Igiari.ttf') format('truetype'), + url('Igiari.svg#Igiari') format('svg'); + font-weight:normal; + font-style:normal; +} + +@media screen and (-webkit-min-device-pixel-ratio:0) { + @font-face { + font-family:'Igiari'; + src: url('Igiari.svg') format('svg'); + font-weight:normal; + font-style:normal; + } +} \ No newline at end of file -- cgit From ddb15bc9a918d27c15a2e4d43f6f6cce2154bea1 Mon Sep 17 00:00:00 2001 From: sD Date: Tue, 9 Jun 2020 21:30:11 +0200 Subject: credit the creator --- webAO/client.html | 1 + 1 file changed, 1 insertion(+) (limited to 'webAO') diff --git a/webAO/client.html b/webAO/client.html index 8552ab7..717f9ea 100644 --- a/webAO/client.html +++ b/webAO/client.html @@ -448,6 +448,7 @@ @oldmud0 and Qubrick.

Special thanks to Aleks for reverse engineering the original Delphi client written by FanatSors.

+

Igiari font by Caveras

-- cgit From b8341cfe25eee08b28d9aea92525cfc9ba9eb19c Mon Sep 17 00:00:00 2001 From: sD Date: Tue, 9 Jun 2020 21:30:21 +0200 Subject: use in AA box --- webAO/styles/chatbox/aa.css | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'webAO') diff --git a/webAO/styles/chatbox/aa.css b/webAO/styles/chatbox/aa.css index 157f3ae..2433c29 100644 --- a/webAO/styles/chatbox/aa.css +++ b/webAO/styles/chatbox/aa.css @@ -30,12 +30,26 @@ color: #0ff; } +/* Webfont CSS setup for Igiari by Caveras */ + @font-face { - font-family: 'ace_attorneyregular'; - src: url('../ace-attorney.woff2') format('woff2'), - url('../ace-attorney.woff') format('woff'); - font-weight: normal; - font-style: normal; + font-family:'Igiari'; + src:url('../igiari/Igiari.eot'); + src:url('../igiari/Igiari.eot?#iefix') format('embedded-opentype'), + url('../igiari/Igiari.woff') format('woff'), + url('../igiari/Igiari.ttf') format('truetype'), + url('../igiari/Igiari.svg#Igiari') format('svg'); + font-weight:normal; + font-style:normal; +} + +@media screen and (-webkit-min-device-pixel-ratio:0) { + @font-face { + font-family:'Igiari'; + src: url('../igiari/Igiari.svg') format('svg'); + font-weight:normal; + font-style:normal; + } } #client_chatcontainer { @@ -46,7 +60,7 @@ height: 40%; width: 100%; filter: none; - font-family: "Ace Attorney", "ace_attorneyregular", "MS PGothic", "MS UI Gothic", "MS Sans Serif", "Hiragino Maru Gothic Pro", "Mitra Mono", "Mukti Narrow", "Meera", "Khmer OS", "FreeSans", "Gargi", sans-serif; + font-family: "Igiari", "MS PGothic", "MS UI Gothic", "MS Sans Serif", "Hiragino Maru Gothic Pro", "Mitra Mono", "Mukti Narrow", "Meera", "Khmer OS", "FreeSans", "Gargi", sans-serif; } #client_name { -- cgit From f5cad1ca383e3e705fd9679344d2d5ea62e4c60c Mon Sep 17 00:00:00 2001 From: sD Date: Fri, 12 Jun 2020 19:47:40 +0200 Subject: change the font on classic theme too --- webAO/styles/classic.css | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'webAO') diff --git a/webAO/styles/classic.css b/webAO/styles/classic.css index cd445ec..87cdda7 100644 --- a/webAO/styles/classic.css +++ b/webAO/styles/classic.css @@ -1,13 +1,27 @@ body { - font-family: "Ace Attorney", "ace_attorneyregular", "MS PGothic", "MS UI Gothic", "MS Sans Serif", "Hiragino Maru Gothic Pro", "Mitra Mono", "Mukti Narrow", "Meera", "Khmer OS", "FreeSans", "Gargi" , sans-serif; + font-family: "Igiari", "Ace Attorney", "MS PGothic", "MS UI Gothic", "MS Sans Serif", "Hiragino Maru Gothic Pro", "Mitra Mono", "Mukti Narrow", "Meera", "Khmer OS", "FreeSans", "Gargi" , sans-serif; } +/* Webfont CSS setup for Igiari by Caveras */ + @font-face { - font-family: 'ace_attorneyregular'; - src: url('ace-attorney.woff2') format('woff2'), - url('ace-attorney.woff') format('woff'); - font-weight: normal; - font-style: normal; + font-family:'Igiari'; + src:url('igiari/Igiari.eot'); + src:url('igiari/Igiari.eot?#iefix') format('embedded-opentype'), + url('igiari/Igiari.woff') format('woff'), + url('igiari/Igiari.ttf') format('truetype'), + url('igiari/Igiari.svg#Igiari') format('svg'); + font-weight:normal; + font-style:normal; +} + +@media screen and (-webkit-min-device-pixel-ratio:0) { + @font-face { + font-family:'Igiari'; + src: url('igiari/Igiari.svg') format('svg'); + font-weight:normal; + font-style:normal; + } } img { -- cgit From a9a4d64609ed7f9fca0f1eef7e155fd1471b0c3d Mon Sep 17 00:00:00 2001 From: sD Date: Thu, 9 Jul 2020 20:59:27 +0200 Subject: adjust font size --- webAO/styles/chatbox/aa.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'webAO') diff --git a/webAO/styles/chatbox/aa.css b/webAO/styles/chatbox/aa.css index 2433c29..50baec4 100644 --- a/webAO/styles/chatbox/aa.css +++ b/webAO/styles/chatbox/aa.css @@ -93,7 +93,7 @@ bottom: 0; left: 0; width: 98%; - width: calc(100% - 0.27em); + width: calc(100% - 0.25em); height: 78%; margin: auto; border-color: rgba(255, 255, 255, 0.5); @@ -101,7 +101,7 @@ border-width: 0.15em; border-radius: 0.3em; background-color: rgba(0, 0, 16, 0.5); - font-size: 2em; + font-size: 1.7em; word-break: keep-all; overflow-wrap: break-word; text-align: left; -- cgit From baf60eeac6b9a0039252936afe64aff328fe9f46 Mon Sep 17 00:00:00 2001 From: sD Date: Fri, 10 Jul 2020 19:53:43 +0200 Subject: round the font size --- webAO/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webAO') diff --git a/webAO/client.js b/webAO/client.js index 8377551..4ce5fb4 100644 --- a/webAO/client.js +++ b/webAO/client.js @@ -2620,7 +2620,7 @@ export function resizeChatbox() { const chatContainerBox = document.getElementById("client_chatcontainer"); const gameHeight = document.getElementById("client_background").offsetHeight; - chatContainerBox.style.fontSize = (gameHeight * 0.05) + "px"; + chatContainerBox.style.fontSize = (gameHeight * 0.0521).toFixed(1) + "px"; } window.resizeChatbox = resizeChatbox; -- cgit From e9a114dd35484eb6ca484dbeabdc4c3fb1641a06 Mon Sep 17 00:00:00 2001 From: sD Date: Fri, 10 Jul 2020 19:54:08 +0200 Subject: account for the changed spacings --- webAO/styles/chatbox/aa.css | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'webAO') diff --git a/webAO/styles/chatbox/aa.css b/webAO/styles/chatbox/aa.css index 50baec4..0d6eff1 100644 --- a/webAO/styles/chatbox/aa.css +++ b/webAO/styles/chatbox/aa.css @@ -67,11 +67,13 @@ display: block; position: absolute; left: 0; - top: 0; - height: 15%; + top: 1%; + height: 13%; min-width: 3.25em; + font-size: 1.1em; background: rgba(56, 56, 163, 0.5); box-shadow: 0.075em 0.075em rgba(0, 56, 163, 0.5) inset; + margin: 0; padding: 0 2%; border-color: rgba(255, 255, 255, 0.5); border-style: ridge groove groove ridge; @@ -84,7 +86,6 @@ text-justify: distribute; letter-spacing: 0.075em; margin: 0; - font-weight: bold; } #client_chat { @@ -101,7 +102,7 @@ border-width: 0.15em; border-radius: 0.3em; background-color: rgba(0, 0, 16, 0.5); - font-size: 1.7em; + font-size: 1.6em; word-break: keep-all; overflow-wrap: break-word; text-align: left; @@ -110,11 +111,9 @@ } #client_inner_chat { - padding: 1% 3.13%; + padding: 0.4% 2.8%; margin: 1px; - line-height: 97%; - letter-spacing: 0.05em; - word-spacing: 0.3em; + line-height: 100%; } #client_chatwaiting { -- cgit