1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2024-12-19 20:12:52 +02:00

Update Anonymous Pro

[why]
We use a prepatched font not the original Anonymous Pro.
The prepatched font contains no bitmaps and is thus like
Anonymous Pro Minus. Also some font internals that fontforge does not
copy out of the box are differing.

And we miss the Bold and Italic variants.

[how]
Crossgrade to original Anonymous Pro as source and add the missing
weight/style.

Add Anonymous to SIL.
Handle 'Pro' naming parts (do not detect 'r' as short for 'Regular').

[note]
Maybe related: #1174

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
Fini Jastrow 2023-04-21 09:08:33 +02:00
parent 51c1aa5904
commit fd7773c092
10 changed files with 11 additions and 29 deletions

View File

@ -162,6 +162,7 @@ class FontnameTools:
return out return out
SIL_TABLE = [ SIL_TABLE = [
( '(a)nonymous', r'\1nonymice' ),
( '(s)ource', r'\1auce' ), ( '(s)ource', r'\1auce' ),
( '(h)ermit', r'\1urmit' ), ( '(h)ermit', r'\1urmit' ),
( '(h)asklig', r'\1asklug' ), ( '(h)asklig', r'\1asklug' ),
@ -264,7 +265,8 @@ class FontnameTools:
( style, weight_token ) = FontnameTools.get_name_token(style, weights) ( style, weight_token ) = FontnameTools.get_name_token(style, weights)
( style, style_token ) = FontnameTools.get_name_token(style, styles) ( style, style_token ) = FontnameTools.get_name_token(style, styles)
( style, other_token ) = FontnameTools.get_name_token(style, other, True) ( style, other_token ) = FontnameTools.get_name_token(style, other, True)
if len(style) < 4: if (len(style) < 4
and style.lower() != 'pro'): # Prevent 'r' of Pro to be detected as style_abbrev
( style, weight_token_abbrevs ) = FontnameTools.get_name_token(style, weight_abbrevs) ( style, weight_token_abbrevs ) = FontnameTools.get_name_token(style, weight_abbrevs)
( style, style_token_abbrevs ) = FontnameTools.get_name_token(style, style_abbrevs) ( style, style_token_abbrevs ) = FontnameTools.get_name_token(style, style_abbrevs)
weight_token += weight_token_abbrevs weight_token += weight_token_abbrevs

View File

@ -1,7 +1,5 @@
Copyright (c) 2009, Mark Simonson Copyright (c) 2009, Mark Simonson (http://www.ms-studio.com, mark@marksimonson.com),
(http://www.ms-studio.com, mark@marksimonson.com), with Reserved Font Name Anonymous Pro.
with Reserved Font Name Anonymous Pro.
Copyright (c) 2013, Kim Silkebækken and Carl X. Su.
This Font Software is licensed under the SIL Open Font License, Version 1.1. This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at: This license is copied below, and is also available with a FAQ at:
@ -21,7 +19,7 @@ with others.
The OFL allows the licensed fonts to be used, studied, modified and The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded, fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives, names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The however, cannot be released under any other type of license. The
@ -93,4 +91,4 @@ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE. OTHER DEALINGS IN THE FONT SOFTWARE.

View File

@ -0,0 +1,4 @@
# Anonymous Pro 1.002
Anonymous Pro (2009) is a family of four fixed-width fonts designed with coding in mind.
For more information have a look at the upstream website: https://www.marksimonson.com/fonts/view/anonymous-pro

View File

@ -1,21 +0,0 @@
Anonymice Powerline
===================
:Font creator: Mark Simonson
:Version: 1.002
:Source: http://www.marksimonson.com/fonts/view/anonymous-pro
:License: SIL OPEN FONT LICENSE Version 1.1
:Patched by: `Carl X. Su <https://github.com/bcbcarl>`_
Anonymous Pro (2009) is a family of four fixed-width fonts designed
especially with coding in mind. Characters that could be mistaken for
one another (O, 0, I, l, 1, etc.) have distinct shapes to make them
easier to tell apart in the context of source code.
Anonymice Powerline is derived from Anonymous Pro for Powerline users.
The Powerline symbols is being made by Kim Silkebækken. The patch work
is being undertaken by Carl X. Su.
Both the final font Truetype/OpenType files and the design files used
to produce the font family are distributed under an open licence and
you are expressly encouraged to experiment, modify, share and improve.

View File

@ -1 +0,0 @@
config_has_powerline=1