spacr 0.2.4__py3-none-any.whl → 0.2.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. spacr/__init__.py +1 -11
  2. spacr/core.py +277 -349
  3. spacr/deep_spacr.py +248 -269
  4. spacr/gui.py +58 -54
  5. spacr/gui_core.py +689 -535
  6. spacr/gui_elements.py +1002 -153
  7. spacr/gui_utils.py +452 -107
  8. spacr/io.py +158 -91
  9. spacr/measure.py +199 -151
  10. spacr/plot.py +159 -47
  11. spacr/resources/font/open_sans/OFL.txt +93 -0
  12. spacr/resources/font/open_sans/OpenSans-Italic-VariableFont_wdth,wght.ttf +0 -0
  13. spacr/resources/font/open_sans/OpenSans-VariableFont_wdth,wght.ttf +0 -0
  14. spacr/resources/font/open_sans/README.txt +100 -0
  15. spacr/resources/font/open_sans/static/OpenSans-Bold.ttf +0 -0
  16. spacr/resources/font/open_sans/static/OpenSans-BoldItalic.ttf +0 -0
  17. spacr/resources/font/open_sans/static/OpenSans-ExtraBold.ttf +0 -0
  18. spacr/resources/font/open_sans/static/OpenSans-ExtraBoldItalic.ttf +0 -0
  19. spacr/resources/font/open_sans/static/OpenSans-Italic.ttf +0 -0
  20. spacr/resources/font/open_sans/static/OpenSans-Light.ttf +0 -0
  21. spacr/resources/font/open_sans/static/OpenSans-LightItalic.ttf +0 -0
  22. spacr/resources/font/open_sans/static/OpenSans-Medium.ttf +0 -0
  23. spacr/resources/font/open_sans/static/OpenSans-MediumItalic.ttf +0 -0
  24. spacr/resources/font/open_sans/static/OpenSans-Regular.ttf +0 -0
  25. spacr/resources/font/open_sans/static/OpenSans-SemiBold.ttf +0 -0
  26. spacr/resources/font/open_sans/static/OpenSans-SemiBoldItalic.ttf +0 -0
  27. spacr/resources/font/open_sans/static/OpenSans_Condensed-Bold.ttf +0 -0
  28. spacr/resources/font/open_sans/static/OpenSans_Condensed-BoldItalic.ttf +0 -0
  29. spacr/resources/font/open_sans/static/OpenSans_Condensed-ExtraBold.ttf +0 -0
  30. spacr/resources/font/open_sans/static/OpenSans_Condensed-ExtraBoldItalic.ttf +0 -0
  31. spacr/resources/font/open_sans/static/OpenSans_Condensed-Italic.ttf +0 -0
  32. spacr/resources/font/open_sans/static/OpenSans_Condensed-Light.ttf +0 -0
  33. spacr/resources/font/open_sans/static/OpenSans_Condensed-LightItalic.ttf +0 -0
  34. spacr/resources/font/open_sans/static/OpenSans_Condensed-Medium.ttf +0 -0
  35. spacr/resources/font/open_sans/static/OpenSans_Condensed-MediumItalic.ttf +0 -0
  36. spacr/resources/font/open_sans/static/OpenSans_Condensed-Regular.ttf +0 -0
  37. spacr/resources/font/open_sans/static/OpenSans_Condensed-SemiBold.ttf +0 -0
  38. spacr/resources/font/open_sans/static/OpenSans_Condensed-SemiBoldItalic.ttf +0 -0
  39. spacr/resources/font/open_sans/static/OpenSans_SemiCondensed-Bold.ttf +0 -0
  40. spacr/resources/font/open_sans/static/OpenSans_SemiCondensed-BoldItalic.ttf +0 -0
  41. spacr/resources/font/open_sans/static/OpenSans_SemiCondensed-ExtraBold.ttf +0 -0
  42. spacr/resources/font/open_sans/static/OpenSans_SemiCondensed-ExtraBoldItalic.ttf +0 -0
  43. spacr/resources/font/open_sans/static/OpenSans_SemiCondensed-Italic.ttf +0 -0
  44. spacr/resources/font/open_sans/static/OpenSans_SemiCondensed-Light.ttf +0 -0
  45. spacr/resources/font/open_sans/static/OpenSans_SemiCondensed-LightItalic.ttf +0 -0
  46. spacr/resources/font/open_sans/static/OpenSans_SemiCondensed-Medium.ttf +0 -0
  47. spacr/resources/font/open_sans/static/OpenSans_SemiCondensed-MediumItalic.ttf +0 -0
  48. spacr/resources/font/open_sans/static/OpenSans_SemiCondensed-Regular.ttf +0 -0
  49. spacr/resources/font/open_sans/static/OpenSans_SemiCondensed-SemiBold.ttf +0 -0
  50. spacr/resources/font/open_sans/static/OpenSans_SemiCondensed-SemiBoldItalic.ttf +0 -0
  51. spacr/resources/icons/logo.pdf +2786 -6
  52. spacr/resources/icons/logo_spacr.png +0 -0
  53. spacr/resources/icons/logo_spacr_1.png +0 -0
  54. spacr/sequencing.py +477 -587
  55. spacr/settings.py +217 -144
  56. spacr/utils.py +46 -46
  57. {spacr-0.2.4.dist-info → spacr-0.2.8.dist-info}/METADATA +46 -35
  58. spacr-0.2.8.dist-info/RECORD +100 -0
  59. {spacr-0.2.4.dist-info → spacr-0.2.8.dist-info}/WHEEL +1 -1
  60. spacr-0.2.4.dist-info/RECORD +0 -58
  61. {spacr-0.2.4.dist-info → spacr-0.2.8.dist-info}/LICENSE +0 -0
  62. {spacr-0.2.4.dist-info → spacr-0.2.8.dist-info}/entry_points.txt +0 -0
  63. {spacr-0.2.4.dist-info → spacr-0.2.8.dist-info}/top_level.txt +0 -0
spacr/plot.py CHANGED
@@ -1,4 +1,4 @@
1
- import os,re, random, cv2, glob, time, math
1
+ import os,re, random, cv2, glob, time, math, torch
2
2
 
3
3
  import numpy as np
4
4
  import pandas as pd
@@ -19,7 +19,113 @@ from IPython.display import Image as ipyimage
19
19
 
20
20
  from .logger import log_function_call
21
21
 
22
- def plot_masks(batch, masks, flows, cmap='inferno', figuresize=20, nr=1, file_type='.npz', print_object_number=True):
22
+ def plot_image_mask_overlay(file, channels, cell_channel, nucleus_channel, pathogen_channel, figuresize=10, normalize=True, thickness=3, save_pdf=True):
23
+ """Plot image and mask overlays."""
24
+
25
+ def _plot_merged_plot(image, outlines, outline_colors, figuresize, thickness):
26
+ """Plot the merged plot with overlay, image channels, and masks."""
27
+
28
+ def _normalize_image(image, percentiles=(2, 98)):
29
+ """Normalize the image to the given percentiles."""
30
+ v_min, v_max = np.percentile(image, percentiles)
31
+ image_normalized = np.clip((image - v_min) / (v_max - v_min), 0, 1)
32
+ return image_normalized
33
+
34
+ def _generate_contours(mask):
35
+ """Generate contours for the given mask using OpenCV."""
36
+ contours, _ = cv2.findContours(mask.astype(np.uint8), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)
37
+ return contours
38
+
39
+ def _apply_contours(image, mask, color, thickness):
40
+ """Apply the contours to the RGB image for each unique label."""
41
+ unique_labels = np.unique(mask)
42
+ for label in unique_labels:
43
+ if label == 0:
44
+ continue # Skip background
45
+ label_mask = np.where(mask == label, 1, 0).astype(np.uint8)
46
+ contours = _generate_contours(label_mask)
47
+ for contour in contours:
48
+ cv2.drawContours(image, [contour], -1, mpl.colors.to_rgb(color), thickness)
49
+ return image
50
+
51
+ num_channels = image.shape[-1]
52
+ fig, ax = plt.subplots(1, num_channels + 1, figsize=(4 * figuresize, figuresize))
53
+
54
+ # Plot each channel with its corresponding outlines
55
+ for v in range(num_channels):
56
+ channel_image = image[..., v]
57
+ channel_image_normalized = _normalize_image(channel_image)
58
+ channel_image_rgb = np.dstack((channel_image_normalized, channel_image_normalized, channel_image_normalized))
59
+
60
+ for outline, color in zip(outlines, outline_colors):
61
+ channel_image_rgb = _apply_contours(channel_image_rgb, outline, color, thickness)
62
+
63
+ ax[v].imshow(channel_image_rgb)
64
+ ax[v].set_title(f'Image - Channel {v}')
65
+
66
+ # Plot the combined RGB image with all outlines
67
+ rgb_image = np.zeros((*image.shape[:2], 3), dtype=float)
68
+ rgb_channels = min(3, num_channels)
69
+ for i in range(rgb_channels):
70
+ channel_image = image[..., i]
71
+ channel_image_normalized = _normalize_image(channel_image)
72
+ rgb_image[..., i] = channel_image_normalized
73
+
74
+ for outline, color in zip(outlines, outline_colors):
75
+ rgb_image = _apply_contours(rgb_image, outline, color, thickness)
76
+
77
+ ax[-1].imshow(rgb_image)
78
+ ax[-1].set_title('Combined RGB Image')
79
+
80
+ plt.tight_layout()
81
+
82
+ # Save the figure as a PDF
83
+ if save_pdf:
84
+ pdf_dir = os.path.join(os.path.dirname(os.path.dirname(file)), 'results', 'overlay')
85
+ os.makedirs(pdf_dir, exist_ok=True)
86
+ pdf_path = os.path.join(pdf_dir, os.path.basename(file).replace('.npy', '.pdf'))
87
+ fig.savefig(pdf_path, format='pdf')
88
+
89
+ plt.show()
90
+ return fig
91
+
92
+ stack = np.load(file)
93
+
94
+ # Convert to float for normalization and ensure correct handling of both 8-bit and 16-bit arrays
95
+ if stack.dtype == np.uint16:
96
+ stack = stack.astype(np.float32)
97
+ elif stack.dtype == np.uint8:
98
+ stack = stack.astype(np.float32)
99
+
100
+ image = stack[..., channels]
101
+ outlines = []
102
+ outline_colors = []
103
+
104
+ if pathogen_channel is not None:
105
+ pathogen_mask_dim = -1 # last dimension
106
+ outlines.append(np.take(stack, pathogen_mask_dim, axis=2))
107
+ outline_colors.append('blue')
108
+
109
+ if nucleus_channel is not None:
110
+ nucleus_mask_dim = -2 if pathogen_channel is not None else -1
111
+ outlines.append(np.take(stack, nucleus_mask_dim, axis=2))
112
+ outline_colors.append('green')
113
+
114
+ if cell_channel is not None:
115
+ if nucleus_channel is not None and pathogen_channel is not None:
116
+ cell_mask_dim = -3
117
+ elif nucleus_channel is not None or pathogen_channel is not None:
118
+ cell_mask_dim = -2
119
+ else:
120
+ cell_mask_dim = -1
121
+ outlines.append(np.take(stack, cell_mask_dim, axis=2))
122
+ outline_colors.append('red')
123
+
124
+ fig = _plot_merged_plot(image=image, outlines=outlines, outline_colors=outline_colors, figuresize=figuresize, thickness=thickness)
125
+
126
+ return
127
+
128
+ def plot_masks(batch, masks, flows, cmap='inferno', figuresize=10, nr=1, file_type='.npz', print_object_number=True):
23
129
  """
24
130
  Plot the masks and flows for a given batch of images.
25
131
 
@@ -370,7 +476,7 @@ def _filter_objects_in_plot(stack, cell_mask_dim, nucleus_mask_dim, pathogen_mas
370
476
 
371
477
  return stack
372
478
 
373
- def plot_arrays(src, figuresize=50, cmap='inferno', nr=1, normalize=True, q1=1, q2=99):
479
+ def plot_arrays(src, figuresize=10, cmap='inferno', nr=1, normalize=True, q1=1, q2=99):
374
480
  """
375
481
  Plot randomly selected arrays from a given directory.
376
482
 
@@ -764,7 +870,7 @@ def _save_scimg_plot(src, nr_imgs=16, channel_indices=[0,1,2], um_per_pixel=0.1,
764
870
 
765
871
  return
766
872
 
767
- def _plot_cropped_arrays(stack, filename, figuresize=20, cmap='inferno', threshold=500):
873
+ def _plot_cropped_arrays(stack, filename, figuresize=10, cmap='inferno', threshold=500):
768
874
  """
769
875
  Plot cropped arrays.
770
876
 
@@ -802,49 +908,9 @@ def _plot_cropped_arrays(stack, filename, figuresize=20, cmap='inferno', thresho
802
908
  fig, axs = plt.subplots(1, num_channels, figsize=(figuresize, figuresize))
803
909
  for channel in range(num_channels):
804
910
  plot_single_array(stack[:, :, channel], axs[channel], f'C. {channel}', plt.get_cmap(cmap))
805
- fig.tight_layout()
806
- plt.show()
807
-
808
- #stop = time.time()
809
- #duration = stop - start
810
- #print('plot_cropped_arrays', duration)
911
+ fig.tight_layout()
811
912
  print(f'{filename}')
812
-
813
- def _plot_cropped_arrays_v1(stack, figuresize=20, cmap='inferno'):
814
- """
815
- Plot cropped arrays.
816
-
817
- Args:
818
- stack (ndarray): The array to be plotted.
819
- figuresize (int, optional): The size of the figure. Defaults to 20.
820
- cmap (str, optional): The colormap to be used. Defaults to 'inferno'.
821
-
822
- Returns:
823
- None
824
- """
825
- start = time.time()
826
- dim = stack.shape
827
- channel=min(dim)
828
- if len(stack.shape) == 2:
829
- f, a = plt.subplots(1, 1,figsize=(figuresize,figuresize))
830
- a.imshow(stack, cmap=plt.get_cmap(cmap))
831
- a.set_title('Channel one',size=18)
832
- a.axis('off')
833
- f.tight_layout()
834
- plt.show()
835
- if len(stack.shape) > 2:
836
- anr = stack.shape[2]
837
- f, a = plt.subplots(1, anr,figsize=(figuresize,figuresize))
838
- for channel in range(anr):
839
- a[channel].imshow(stack[:,:,channel], cmap=plt.get_cmap(cmap))
840
- a[channel].set_title('Channel '+str(channel),size=18)
841
- a[channel].axis('off')
842
- f.tight_layout()
843
- plt.show()
844
- stop = time.time()
845
- duration = stop - start
846
- print('plot_cropped_arrays', duration)
847
- return
913
+ return fig
848
914
 
849
915
  def _visualize_and_save_timelapse_stack_with_tracks(masks, tracks_df, save, src, name, plot, filenames, object_type, mode='btrack', interactive=False):
850
916
  """
@@ -931,7 +997,7 @@ def _display_gif(path):
931
997
  with open(path, 'rb') as file:
932
998
  display(ipyimage(file.read()))
933
999
 
934
- def _plot_recruitment(df, df_type, channel_of_interest, target, columns=[], figuresize=50):
1000
+ def _plot_recruitment(df, df_type, channel_of_interest, target, columns=[], figuresize=10):
935
1001
  """
936
1002
  Plot recruitment data for different conditions and pathogens.
937
1003
 
@@ -1120,6 +1186,52 @@ def _imshow(img, labels, nrow=20, color='white', fontsize=12):
1120
1186
  y = row * img_height + 15
1121
1187
  plt.text(x, y, label, color=color, fontsize=fontsize, fontweight='bold')
1122
1188
  return fig
1189
+
1190
+ def _imshow_gpu(img, labels, nrow=20, color='white', fontsize=12):
1191
+ """
1192
+ Display multiple images in a grid with corresponding labels.
1193
+
1194
+ Args:
1195
+ img (torch.Tensor): A batch of images as a tensor.
1196
+ labels (list): List of labels corresponding to each image.
1197
+ nrow (int, optional): Number of images per row in the grid. Defaults to 20.
1198
+ color (str, optional): Color of the label text. Defaults to 'white'.
1199
+ fontsize (int, optional): Font size of the label text. Defaults to 12.
1200
+ """
1201
+ if img.is_cuda:
1202
+ img = img.cpu() # Move to CPU if the tensor is on GPU
1203
+
1204
+ n_images = len(labels)
1205
+ n_col = nrow
1206
+ n_row = int(np.ceil(n_images / n_col))
1207
+
1208
+ img_height = img.shape[2] # Height of the image
1209
+ img_width = img.shape[3] # Width of the image
1210
+
1211
+ # Prepare the canvas on CPU
1212
+ canvas = torch.zeros((img_height * n_row, img_width * n_col, 3))
1213
+
1214
+ for i in range(n_row):
1215
+ for j in range(n_col):
1216
+ idx = i * n_col + j
1217
+ if idx < n_images:
1218
+ # Place the image on the canvas
1219
+ canvas[i * img_height:(i + 1) * img_height, j * img_width:(j + 1) * img_width] = img[idx].permute(1, 2, 0)
1220
+
1221
+ canvas = canvas.numpy() # Convert to NumPy for plotting
1222
+
1223
+ fig = plt.figure(figsize=(50, 50))
1224
+ plt.imshow(canvas)
1225
+ plt.axis("off")
1226
+
1227
+ for i, label in enumerate(labels):
1228
+ row = i // n_col
1229
+ col = i % n_col
1230
+ x = col * img_width + 2
1231
+ y = row * img_height + 15
1232
+ plt.text(x, y, label, color=color, fontsize=fontsize, fontweight='bold')
1233
+
1234
+ return fig
1123
1235
 
1124
1236
  def _plot_histograms_and_stats(df):
1125
1237
  conditions = df['condition'].unique()
@@ -0,0 +1,93 @@
1
+ Copyright 2020 The Open Sans Project Authors (https://github.com/googlefonts/opensans)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://openfontlicense.org
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,100 @@
1
+ Open Sans Variable Font
2
+ =======================
3
+
4
+ This download contains Open Sans as both variable fonts and static fonts.
5
+
6
+ Open Sans is a variable font with these axes:
7
+ wdth
8
+ wght
9
+
10
+ This means all the styles are contained in these files:
11
+ OpenSans-VariableFont_wdth,wght.ttf
12
+ OpenSans-Italic-VariableFont_wdth,wght.ttf
13
+
14
+ If your app fully supports variable fonts, you can now pick intermediate styles
15
+ that aren’t available as static fonts. Not all apps support variable fonts, and
16
+ in those cases you can use the static font files for Open Sans:
17
+ static/OpenSans_Condensed-Light.ttf
18
+ static/OpenSans_Condensed-Regular.ttf
19
+ static/OpenSans_Condensed-Medium.ttf
20
+ static/OpenSans_Condensed-SemiBold.ttf
21
+ static/OpenSans_Condensed-Bold.ttf
22
+ static/OpenSans_Condensed-ExtraBold.ttf
23
+ static/OpenSans_SemiCondensed-Light.ttf
24
+ static/OpenSans_SemiCondensed-Regular.ttf
25
+ static/OpenSans_SemiCondensed-Medium.ttf
26
+ static/OpenSans_SemiCondensed-SemiBold.ttf
27
+ static/OpenSans_SemiCondensed-Bold.ttf
28
+ static/OpenSans_SemiCondensed-ExtraBold.ttf
29
+ static/OpenSans-Light.ttf
30
+ static/OpenSans-Regular.ttf
31
+ static/OpenSans-Medium.ttf
32
+ static/OpenSans-SemiBold.ttf
33
+ static/OpenSans-Bold.ttf
34
+ static/OpenSans-ExtraBold.ttf
35
+ static/OpenSans_Condensed-LightItalic.ttf
36
+ static/OpenSans_Condensed-Italic.ttf
37
+ static/OpenSans_Condensed-MediumItalic.ttf
38
+ static/OpenSans_Condensed-SemiBoldItalic.ttf
39
+ static/OpenSans_Condensed-BoldItalic.ttf
40
+ static/OpenSans_Condensed-ExtraBoldItalic.ttf
41
+ static/OpenSans_SemiCondensed-LightItalic.ttf
42
+ static/OpenSans_SemiCondensed-Italic.ttf
43
+ static/OpenSans_SemiCondensed-MediumItalic.ttf
44
+ static/OpenSans_SemiCondensed-SemiBoldItalic.ttf
45
+ static/OpenSans_SemiCondensed-BoldItalic.ttf
46
+ static/OpenSans_SemiCondensed-ExtraBoldItalic.ttf
47
+ static/OpenSans-LightItalic.ttf
48
+ static/OpenSans-Italic.ttf
49
+ static/OpenSans-MediumItalic.ttf
50
+ static/OpenSans-SemiBoldItalic.ttf
51
+ static/OpenSans-BoldItalic.ttf
52
+ static/OpenSans-ExtraBoldItalic.ttf
53
+
54
+ Get started
55
+ -----------
56
+
57
+ 1. Install the font files you want to use
58
+
59
+ 2. Use your app's font picker to view the font family and all the
60
+ available styles
61
+
62
+ Learn more about variable fonts
63
+ -------------------------------
64
+
65
+ https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts
66
+ https://variablefonts.typenetwork.com
67
+ https://medium.com/variable-fonts
68
+
69
+ In desktop apps
70
+
71
+ https://theblog.adobe.com/can-variable-fonts-illustrator-cc
72
+ https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts
73
+
74
+ Online
75
+
76
+ https://developers.google.com/fonts/docs/getting_started
77
+ https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide
78
+ https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts
79
+
80
+ Installing fonts
81
+
82
+ MacOS: https://support.apple.com/en-us/HT201749
83
+ Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux
84
+ Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows
85
+
86
+ Android Apps
87
+
88
+ https://developers.google.com/fonts/docs/android
89
+ https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts
90
+
91
+ License
92
+ -------
93
+ Please read the full license text (OFL.txt) to understand the permissions,
94
+ restrictions and requirements for usage, redistribution, and modification.
95
+
96
+ You can use them in your products & projects – print or digital,
97
+ commercial or otherwise.
98
+
99
+ This isn't legal advice, please consider consulting a lawyer and see the full
100
+ license for all details.