Skip to content

Commit

Permalink
Merge pull request #83 from 0xType/bold-weight
Browse files Browse the repository at this point in the history
Introduce 0xProto-Bold
  • Loading branch information
matype authored Sep 1, 2024
2 parents 7bd7475 + 2a2354d commit af5f36a
Show file tree
Hide file tree
Showing 853 changed files with 23,909 additions and 8,759 deletions.
40 changes: 14 additions & 26 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
FONT_NAME = 0xProto
MAIN_WEIGHT = Regular
BOLD_WEIGHT = Bold
ITALIC = Italic
SOURCE_DIR = sources
MAIN_GLYPHS_FILE = $(SOURCE_DIR)/$(FONT_NAME).glyphspackage
Expand All @@ -20,49 +21,38 @@ build:
$(MAKE) clean
$(MAKE) compile-all

compile-otf-main: $(MAIN_GLYPHS_FILE)
fontmake -a -g $(MAIN_GLYPHS_FILE) -o otf --output-dir $(OUTPUT_DIR)

compile-otf-italic: $(ITALIC_GLYPHS_FILE)
fontmake -a -g $(ITALIC_GLYPHS_FILE) -o otf --output-dir $(OUTPUT_DIR)

compile-ttf-main: $(MAIN_GLYPHS_FILE)
fontmake -a -g $(MAIN_GLYPHS_FILE) -o ttf --output-dir $(OUTPUT_DIR)

compile-ttf-italic: $(ITALIC_GLYPHS_FILE)
fontmake -a -g $(ITALIC_GLYPHS_FILE) -o ttf --output-dir $(OUTPUT_DIR)

compile-woff2-main: $(OUTPUT_DIR)/$(FONT_NAME)-$(MAIN_WEIGHT).ttf
compile-woff2-roman: $(OUTPUT_DIR)/$(FONT_NAME)-$(MAIN_WEIGHT).ttf $(OUTPUT_DIR)/$(FONT_NAME)-$(BOLD_WEIGHT).ttf
./woff2/woff2_compress $(OUTPUT_DIR)/$(FONT_NAME)-$(MAIN_WEIGHT).ttf
./woff2/woff2_compress $(OUTPUT_DIR)/$(FONT_NAME)-$(BOLD_WEIGHT).ttf

compile-woff2-italic: $(OUTPUT_DIR)/$(FONT_NAME)-$(ITALIC).ttf
./woff2/woff2_compress $(OUTPUT_DIR)/$(FONT_NAME)-$(ITALIC).ttf

compile-main: $(MAIN_GLYPHS_FILE)
$(MAKE) compile-otf-main
$(MAKE) compile-ttf-main && $(MAKE) compile-woff2-main
compile-roman: $(MAIN_GLYPHS_FILE)
fontmake -a -g $(MAIN_GLYPHS_FILE) -i --output-dir $(OUTPUT_DIR) && $(MAKE) compile-woff2-roman

compile-italic: $(ITALIC_GLYPHS_FILE)
$(MAKE) compile-otf-italic
$(MAKE) compile-ttf-italic && $(MAKE) compile-woff2-italic
fontmake -a -g $(ITALIC_GLYPHS_FILE) --output-dir $(OUTPUT_DIR) && $(MAKE) compile-woff2-italic

compile-all:
$(MAKE) compile-main
$(MAKE) compile-roman
$(MAKE) compile-italic

.PHONY: clean
clean:
if [ -e $(OUTPUT_DIR) ]; then rm -rf $(OUTPUT_DIR); fi

install-otf-main: $(OUTPUT_DIR)/$(FONT_NAME)-$(MAIN_WEIGHT).otf
install-otf-roman: $(OUTPUT_DIR)/$(FONT_NAME)-$(MAIN_WEIGHT).otf $(OUTPUT_DIR)/$(FONT_NAME)-$(BOLD_WEIGHT).otf
cp $(OUTPUT_DIR)/$(FONT_NAME)-$(MAIN_WEIGHT).otf $(HOME)/Library/Fonts
cp $(OUTPUT_DIR)/$(FONT_NAME)-$(BOLD_WEIGHT).otf $(HOME)/Library/Fonts

install-otf-italic: $(OUTPUT_DIR)/$(FONT_NAME)-$(MAIN_WEIGHT).otf
cp $(OUTPUT_DIR)/$(FONT_NAME)-$(ITALIC).otf $(HOME)/Library/Fonts

install-latest:
.PHONY: install
install:
$(MAKE) build
$(MAKE) install-otf-main
$(MAKE) install-otf-roman
$(MAKE) install-otf-italic

close-vscode:
Expand All @@ -72,8 +62,6 @@ close-vscode:

debug:
$(MAKE) close-vscode
$(MAKE) clean
$(MAKE) ufo
$(MAKE) compile-otf-main
$(MAKE) install-otf-main
$(MAKE) build
$(MAKE) install
code .
17 changes: 12 additions & 5 deletions sources/0xProto-Italic.glyphspackage/fontinfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,17 @@ m01 = 1;
isItalic = 1;
linkStyle = Regular;
name = Italic;
properties = (
{
key = postscriptFullNames;
values = (
{
language = dflt;
value = "0xProto Italic";
}
);
}
);
}
);
metrics = (
Expand Down Expand Up @@ -1007,10 +1018,6 @@ key = manufacturerURL;
value = "https://0xtype.dev/";
},
{
key = postscriptFontName;
value = "0xProto Italic";
},
{
key = postscriptFullNames;
values = (
{
Expand All @@ -1021,7 +1028,7 @@ value = "0xProto Italic";
},
{
key = vendorID;
value = 0xType;
value = 0x;
}
);
unitsPerEm = 1000;
Expand Down
118 changes: 104 additions & 14 deletions sources/0xProto.glyphspackage/fontinfo.plist
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
.appVersion = "3260";
.formatVersion = 3;
axes = (
{
name = Weight;
tag = wght;
}
);
classes = (
{
automatic = 1;
Expand Down Expand Up @@ -778,6 +784,9 @@ tag = dlig;
);
fontMaster = (
{
axesValues = (
400
);
customParameters = (
{
name = strikeoutPosition;
Expand Down Expand Up @@ -808,20 +817,104 @@ over = -16;
{
over = -16;
pos = -250;
},
{
}
);
name = Regular;
userData = {
GSCornerRadius = 218;
};
visible = 1;
},
{
axesValues = (
700
);
customParameters = (
{
name = strikeoutPosition;
value = 330;
},
{
name = strikeoutSize;
value = 50;
}
);
iconName = SemiBold;
id = m002;
metricValues = (
{
over = 16;
pos = 750;
},
{
over = 16;
pos = 710;
},
{
over = 16;
pos = 550;
},
{
over = -16;
},
{
over = -16;
pos = -250;
},
{
}
);
name = Bold;
userData = {
GSCornerRadius = 218;
};
visible = 1;
}
);
instances = (
{
axesValues = (
400
);
instanceInterpolations = {
m01 = 1;
};
name = Regular;
properties = (
{
key = postscriptFullNames;
values = (
{
language = dflt;
value = "0xProto Regular";
}
);
}
);
},
{
axesValues = (
700
);
instanceInterpolations = {
m002 = 1;
};
isBold = 1;
name = Bold;
properties = (
{
key = postscriptFullNames;
values = (
{
language = dflt;
value = "0xProto Bold";
}
);
}
);
weightClass = 700;
}
);
metrics = (
Expand All @@ -840,6 +933,9 @@ type = baseline;
},
{
type = descender;
},
{
type = "italic angle";
}
);
properties = (
Expand All @@ -857,26 +953,20 @@ key = manufacturerURL;
value = "https://0xtype.dev/";
},
{
key = postscriptFontName;
value = "0xProto Regular";
},
{
key = postscriptFullNames;
values = (
{
language = dflt;
value = "0xProto Regular";
}
);
},
{
key = vendorID;
value = 0xType;
value = 0x;
}
);
unitsPerEm = 1000;
userData = {
GSDimensionPlugin.Dimensions = {
m002 = {
HH = "130";
HV = "138";
nV = "131";
nd = "118";
tH = "122";
};
m01 = {
};
};
Expand Down
55 changes: 55 additions & 0 deletions sources/0xProto.glyphspackage/glyphs/A_.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,61 @@ nodes = (
}
);
width = 620;
},
{
anchors = (
{
name = bottom;
pos = (310,0);
},
{
name = ogonek;
pos = (598,0);
},
{
name = top;
pos = (310,710);
}
);
layerId = m002;
shapes = (
{
closed = 1;
nodes = (
(160,0,l),
(225,302,o),
(291,541,o),
(375,710,c),
(244,710,l),
(163,540,o),
(91,304,o),
(22,0,c)
);
},
{
closed = 1;
nodes = (
(529,304,o),
(457,540,o),
(376,710,c),
(245,710,l),
(329,541,o),
(395,302,o),
(460,0,c),
(598,0,l)
);
},
{
closed = 1;
nodes = (
(155,148,l),
(466,148,l),
(466,281,l),
(155,281,l)
);
}
);
width = 620;
}
);
unicode = 65;
Expand Down
Loading

0 comments on commit af5f36a

Please sign in to comment.