web: remove noise effect
This commit is contained in:
parent
e3927d36a5
commit
79630f45e9
3 changed files with 32 additions and 49 deletions
|
|
@ -25,8 +25,6 @@ endfor
|
||||||
<link rel="stylesheet" href="index-var.css?v={{ index_var_css_v }}">
|
<link rel="stylesheet" href="index-var.css?v={{ index_var_css_v }}">
|
||||||
<input type="text" id="hidden-text-input">
|
<input type="text" id="hidden-text-input">
|
||||||
|
|
||||||
<div class="noise-layer"></div>
|
|
||||||
|
|
||||||
<div class="row white"><div>
|
<div class="row white"><div>
|
||||||
<!-- <h1>The Inter<br>typeface family</h1> -->
|
<!-- <h1>The Inter<br>typeface family</h1> -->
|
||||||
<grid columns=8>
|
<grid columns=8>
|
||||||
|
|
@ -520,6 +518,29 @@ html { font-family: 'Inter', sans-serif; }
|
||||||
started.
|
started.
|
||||||
</c>
|
</c>
|
||||||
|
|
||||||
|
<c>
|
||||||
|
<h4 id="faq-subset"><a href="#faq-chrome-vf-bugs">
|
||||||
|
How do I subset the font files?
|
||||||
|
</a></h4>
|
||||||
|
The web fonts provided by <a href="inter.css"><tt>inter.css</tt></a> and
|
||||||
|
<a href="inter-display.css"><tt>inter-display.css</tt></a> already use subset font files.
|
||||||
|
If you need special, customized subsets or subsetting of OTF or TTF files,
|
||||||
|
have a look at the tools
|
||||||
|
<a href="https://fonttools.readthedocs.io/en/latest/subset/"><tt>pyftsubset</tt></a>
|
||||||
|
and
|
||||||
|
<a href="https://github.com/filamentgroup/glyphhanger"><tt>glyphhanger</tt></a>
|
||||||
|
</c>
|
||||||
|
|
||||||
|
<c>
|
||||||
|
<h4 id="faq-otfeat-customize-compile"><a href="#faq-chrome-vf-bugs">
|
||||||
|
How do I access alternate glyphs if my software doesn't provide OpenType control?
|
||||||
|
</a></h4>
|
||||||
|
Have a look at
|
||||||
|
<a href="https://github.com/twardoch/fonttools-opentype-feature-freezer"><tt>pyftfeatfreeze</tt></a>
|
||||||
|
which is a tool that allows you to build font files with certain OpenType features turned
|
||||||
|
on "by default".
|
||||||
|
</c>
|
||||||
|
|
||||||
<c>
|
<c>
|
||||||
<h4 id="faq-start-date"><a href="#faq-start-date">
|
<h4 id="faq-start-date"><a href="#faq-start-date">
|
||||||
This website claims work started in 2016, but the git repository's log says it started later?
|
This website claims work started in 2016, but the git repository's log says it started later?
|
||||||
|
|
@ -528,24 +549,6 @@ html { font-family: 'Inter', sans-serif; }
|
||||||
starting in November 2016, prior to being published on August 22, 2017.
|
starting in November 2016, prior to being published on August 22, 2017.
|
||||||
Between November 2016 and August 2017, there were
|
Between November 2016 and August 2017, there were
|
||||||
<num>2 990 150</num> line edits made across 247 versions.
|
<num>2 990 150</num> line edits made across 247 versions.
|
||||||
The reason the public GitHub repository does not reflect this is the
|
|
||||||
fact that the project was initially only internal at the company where
|
|
||||||
the author works and had some sensitive information "checked in",
|
|
||||||
like AWS server details and internal author identity in
|
|
||||||
all commit messages. Maybe one day we can write an elaborate git
|
|
||||||
filter-branch program and convert the old repository to make
|
|
||||||
it public, but what would be the point of that? :—)
|
|
||||||
</c>
|
|
||||||
|
|
||||||
<c>
|
|
||||||
<h4 id="faq-chrome-vf-bugs"><a href="#faq-chrome-vf-bugs">
|
|
||||||
The variable font renders poorly in Chrome
|
|
||||||
</a></h4>
|
|
||||||
There are some known issues with variable fonts in Chrome, in particular
|
|
||||||
on Microsoft Windows. You may see an effect similar to "ink bleed" where shapes overlap, for instance where the vertical and horizontal stems meet in "+" or "t".
|
|
||||||
On Windows you may in addition see incorrectly placed glyphs that looks like poor kerning (spacing between characters) and even some glyphs being lower or taller than other glyphs.
|
|
||||||
It is recommended to avoid using variable fonts on Chrome.
|
|
||||||
See the <a href="https://bugs.chromium.org/p/chromium/issues/list?can=2&q=variable+component%3ABlink%3EFonts">Chromium bug tracker</a> for a list of variable-font related issues.
|
|
||||||
</c>
|
</c>
|
||||||
|
|
||||||
<c>
|
<c>
|
||||||
|
|
@ -701,7 +704,3 @@ trackingEl.addEventListener('mousedown', onPointerdownTracking, activeListener)
|
||||||
updateTracking()
|
updateTracking()
|
||||||
|
|
||||||
})();</script>
|
})();</script>
|
||||||
<script>(function(){
|
|
||||||
let el = document.querySelector(".noise-layer")
|
|
||||||
el.style.height = document.body.clientHeight + "px"
|
|
||||||
})()</script>
|
|
||||||
|
|
@ -18,6 +18,14 @@
|
||||||
--blue: rgb(3, 102, 230);
|
--blue: rgb(3, 102, 230);
|
||||||
--green: rgb(38, 220, 78);
|
--green: rgb(38, 220, 78);
|
||||||
--mediumGreen: rgb(119, 221, 134);
|
--mediumGreen: rgb(119, 221, 134);
|
||||||
|
|
||||||
|
--font-family: 'Inter';
|
||||||
|
}
|
||||||
|
|
||||||
|
@supports (font-variation-settings: normal) {
|
||||||
|
:root {
|
||||||
|
--font-family: 'Inter var';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@supports not (color: color(display-p3 1 1 1)) {
|
@supports not (color: color(display-p3 1 1 1)) {
|
||||||
|
|
@ -41,7 +49,7 @@ html { }
|
||||||
body {
|
body {
|
||||||
background-color: #f4f4f4;
|
background-color: #f4f4f4;
|
||||||
color: #111;
|
color: #111;
|
||||||
font: 15px/22px 'Inter', system-ui, sans-serif;
|
font: 15px/22px var(--font-family), system-ui, sans-serif;
|
||||||
|
|
||||||
/*font-size: 15px;
|
/*font-size: 15px;
|
||||||
line-height: 1.5;*/
|
line-height: 1.5;*/
|
||||||
|
|
@ -96,18 +104,6 @@ body {
|
||||||
.font-style-black { font-variation-settings: "wght" 900, "slnt" 0 !important; font-weight:900 !important; font-style:normal !important; }
|
.font-style-black { font-variation-settings: "wght" 900, "slnt" 0 !important; font-weight:900 !important; font-style:normal !important; }
|
||||||
.font-style-black-italic { font-variation-settings: "wght" 900, "slnt" 100 !important; font-weight:900 !important; font-style:oblique !important; }
|
.font-style-black-italic { font-variation-settings: "wght" 900, "slnt" 100 !important; font-weight:900 !important; font-style:oblique !important; }
|
||||||
|
|
||||||
@supports (font-variation-settings: normal) {
|
|
||||||
body {
|
|
||||||
font-family: 'Inter var', system-ui, sans-serif;
|
|
||||||
}
|
|
||||||
body.chrome-win {
|
|
||||||
/* Chrome has some VF issues; worst are on Windows with incorrect kerning.
|
|
||||||
We disable VF on Chrome on Windows for that reason.
|
|
||||||
*/
|
|
||||||
font-family: Inter, system-ui, sans-serif;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
DISABLED:target:before {
|
DISABLED:target:before {
|
||||||
content:"";
|
content:"";
|
||||||
display: block;
|
display: block;
|
||||||
|
|
@ -522,18 +518,6 @@ h2.banner {
|
||||||
color: #3B414A;
|
color: #3B414A;
|
||||||
}
|
}
|
||||||
|
|
||||||
.noise-layer {
|
|
||||||
background-image: url(noise512.png);
|
|
||||||
background-size: 256px;
|
|
||||||
opacity: 0.03;
|
|
||||||
pointer-events: none;
|
|
||||||
position: absolute;
|
|
||||||
top:0;
|
|
||||||
left:0;
|
|
||||||
right:0;
|
|
||||||
/*bottom:0;*/
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* --------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 35 KiB |
Reference in a new issue