Committed by
GitHub
Add Noto Sans TC/SC fonts for traditional and simplified Chinese (#1724)
Add Noto Sans TC/SC fonts for traditional and simplified Chinese
Showing
2 changed files
with
208 additions
and
0 deletions
| @@ -15,6 +15,11 @@ jobs: | @@ -15,6 +15,11 @@ jobs: | ||
| 15 | - uses: subosito/flutter-action@v2 | 15 | - uses: subosito/flutter-action@v2 |
| 16 | with: | 16 | with: |
| 17 | channel: stable | 17 | channel: stable |
| 18 | + - name: Set up Java | ||
| 19 | + uses: actions/setup-java@v4 | ||
| 20 | + with: | ||
| 21 | + distribution: "temurin" | ||
| 22 | + java-version: 17 | ||
| 18 | - name: Enable Linux for flutter | 23 | - name: Enable Linux for flutter |
| 19 | run: flutter config --enable-linux-desktop | 24 | run: flutter config --enable-linux-desktop |
| 20 | - name: Update repo | 25 | - name: Update repo |
| @@ -81,6 +86,11 @@ jobs: | @@ -81,6 +86,11 @@ jobs: | ||
| 81 | - uses: subosito/flutter-action@v2 | 86 | - uses: subosito/flutter-action@v2 |
| 82 | with: | 87 | with: |
| 83 | channel: master | 88 | channel: master |
| 89 | + - name: Set up Java | ||
| 90 | + uses: actions/setup-java@v4 | ||
| 91 | + with: | ||
| 92 | + distribution: "temurin" | ||
| 93 | + java-version: 17 | ||
| 84 | - name: Enable Linux for flutter | 94 | - name: Enable Linux for flutter |
| 85 | run: flutter config --enable-linux-desktop | 95 | run: flutter config --enable-linux-desktop |
| 86 | - name: Update repo | 96 | - name: Update repo |
| @@ -3250,6 +3250,24 @@ import 'font.dart'; | @@ -3250,6 +3250,24 @@ import 'font.dart'; | ||
| 3250 | /// - notoSansExtraBoldItalic (Noto Sans 800italic) | 3250 | /// - notoSansExtraBoldItalic (Noto Sans 800italic) |
| 3251 | /// - notoSansBlack (Noto Sans 900) | 3251 | /// - notoSansBlack (Noto Sans 900) |
| 3252 | /// - notoSansBlackItalic (Noto Sans 900italic) | 3252 | /// - notoSansBlackItalic (Noto Sans 900italic) |
| 3253 | +/// - notoSansTCThin (Noto Sans TC Thin 100) | ||
| 3254 | +/// - notoSansTCExtraLight (Noto Sans TC ExtraLight 200) | ||
| 3255 | +/// - notoSansTCLight (Noto Sans TC Light 300) | ||
| 3256 | +/// - notoSansTCRegular (Noto Sans TC Regular 400) | ||
| 3257 | +/// - notoSansTCMedium (Noto Sans TC Medium 500) | ||
| 3258 | +/// - notoSansTCSemiBold (Noto Sans TC SemiBold 600) | ||
| 3259 | +/// - notoSansTCBold (Noto Sans TC Bold 700) | ||
| 3260 | +/// - notoSansTCExtraBold (Noto Sans TC ExtraBold 800) | ||
| 3261 | +/// - notoSansTCBlack (Noto Sans TC Black 900) | ||
| 3262 | +/// - notoSansSCThin (Noto Sans SC Thin 100) | ||
| 3263 | +/// - notoSansSCExtraLight (Noto Sans SC ExtraLight 200) | ||
| 3264 | +/// - notoSansSCLight (Noto Sans SC Light 300) | ||
| 3265 | +/// - notoSansSCRegular (Noto Sans SC Regular 400) | ||
| 3266 | +/// - notoSansSCMedium (Noto Sans SC Medium 500) | ||
| 3267 | +/// - notoSansSCSemiBold (Noto Sans SC SemiBold 600) | ||
| 3268 | +/// - notoSansSCBold (Noto Sans SC Bold 700) | ||
| 3269 | +/// - notoSansSCExtraBold (Noto Sans SC ExtraBold 800) | ||
| 3270 | +/// - notoSansSCBlack (Noto Sans SC Black 900) | ||
| 3253 | /// - notoSansAdlamRegular (Noto Sans Adlam regular) | 3271 | /// - notoSansAdlamRegular (Noto Sans Adlam regular) |
| 3254 | /// - notoSansAdlamMedium (Noto Sans Adlam 500) | 3272 | /// - notoSansAdlamMedium (Noto Sans Adlam 500) |
| 3255 | /// - notoSansAdlamSemiBold (Noto Sans Adlam 600) | 3273 | /// - notoSansAdlamSemiBold (Noto Sans Adlam 600) |
| @@ -37776,6 +37794,186 @@ class PdfGoogleFonts extends DownloadableFont { | @@ -37776,6 +37794,186 @@ class PdfGoogleFonts extends DownloadableFont { | ||
| 37776 | } | 37794 | } |
| 37777 | 37795 | ||
| 37778 | /// @nodoc | 37796 | /// @nodoc |
| 37797 | + /// Noto Sans TC Thin 100 | ||
| 37798 | + static Future<Font> notoSansTCThin() { | ||
| 37799 | + const font = PdfGoogleFonts._( | ||
| 37800 | + 'https://fonts.gstatic.com/s/notosanstc/v36/-nFuOG829Oofr2wohFbTp9ifNAn722rq0MXz76Cz_Co.ttf', | ||
| 37801 | + 'NotoSansTC-Thin', | ||
| 37802 | + ); | ||
| 37803 | + return font.getFont(); | ||
| 37804 | + } | ||
| 37805 | + | ||
| 37806 | + /// @nodoc | ||
| 37807 | + /// Noto Sans TC ExtraLight 200 | ||
| 37808 | + static Future<Font> notoSansTCExtraLight() { | ||
| 37809 | + const font = PdfGoogleFonts._( | ||
| 37810 | + 'https://fonts.gstatic.com/s/notosanstc/v36/-nFuOG829Oofr2wohFbTp9ifNAn722rq0MXz7yCy_Co.ttf', | ||
| 37811 | + 'NotoSansTC-ExtraLight', | ||
| 37812 | + ); | ||
| 37813 | + return font.getFont(); | ||
| 37814 | + } | ||
| 37815 | + | ||
| 37816 | + /// @nodoc | ||
| 37817 | + /// Noto Sans TC Light 300 | ||
| 37818 | + static Future<Font> notoSansTCLight() { | ||
| 37819 | + const font = PdfGoogleFonts._( | ||
| 37820 | + 'https://fonts.gstatic.com/s/notosanstc/v36/-nFuOG829Oofr2wohFbTp9ifNAn722rq0MXz7_6y_Co.ttf', | ||
| 37821 | + 'NotoSansTC-Light', | ||
| 37822 | + ); | ||
| 37823 | + return font.getFont(); | ||
| 37824 | + } | ||
| 37825 | + | ||
| 37826 | + /// @nodoc | ||
| 37827 | + /// Noto Sans TC Regular 400 | ||
| 37828 | + static Future<Font> notoSansTCRegular() { | ||
| 37829 | + const font = PdfGoogleFonts._( | ||
| 37830 | + 'https://fonts.gstatic.com/s/notosanstc/v36/-nFuOG829Oofr2wohFbTp9ifNAn722rq0MXz76Cy_Co.ttf', | ||
| 37831 | + 'NotoSansTC-Regular', | ||
| 37832 | + ); | ||
| 37833 | + return font.getFont(); | ||
| 37834 | + } | ||
| 37835 | + | ||
| 37836 | + /// @nodoc | ||
| 37837 | + /// Noto Sans TC Medium 500 | ||
| 37838 | + static Future<Font> notoSansTCMedium() { | ||
| 37839 | + const font = PdfGoogleFonts._( | ||
| 37840 | + 'https://fonts.gstatic.com/s/notosanstc/v36/-nFuOG829Oofr2wohFbTp9ifNAn722rq0MXz75Ky_Co.ttf', | ||
| 37841 | + 'NotoSansTC-Medium', | ||
| 37842 | + ); | ||
| 37843 | + return font.getFont(); | ||
| 37844 | + } | ||
| 37845 | + | ||
| 37846 | + /// @nodoc | ||
| 37847 | + /// Noto Sans TC SemiBold 600 | ||
| 37848 | + static Future<Font> notoSansTCSemiBold() { | ||
| 37849 | + const font = PdfGoogleFonts._( | ||
| 37850 | + 'https://fonts.gstatic.com/s/notosanstc/v36/-nFuOG829Oofr2wohFbTp9ifNAn722rq0MXz7361_Co.ttf', | ||
| 37851 | + 'NotoSansTC-SemiBold', | ||
| 37852 | + ); | ||
| 37853 | + return font.getFont(); | ||
| 37854 | + } | ||
| 37855 | + | ||
| 37856 | + /// @nodoc | ||
| 37857 | + /// Noto Sans TC Bold 700 | ||
| 37858 | + static Future<Font> notoSansTCBold() { | ||
| 37859 | + const font = PdfGoogleFonts._( | ||
| 37860 | + 'https://fonts.gstatic.com/s/notosanstc/v36/-nFuOG829Oofr2wohFbTp9ifNAn722rq0MXz70e1_Co.ttf', | ||
| 37861 | + 'NotoSansTC-Bold', | ||
| 37862 | + ); | ||
| 37863 | + return font.getFont(); | ||
| 37864 | + } | ||
| 37865 | + | ||
| 37866 | + /// @nodoc | ||
| 37867 | + /// Noto Sans TC ExtraBold 800 | ||
| 37868 | + static Future<Font> notoSansTCExtraBold() { | ||
| 37869 | + const font = PdfGoogleFonts._( | ||
| 37870 | + 'https://fonts.gstatic.com/s/notosanstc/v36/-nFuOG829Oofr2wohFbTp9ifNAn722rq0MXz7yC1_Co.ttf', | ||
| 37871 | + 'NotoSansTC-ExtraBold', | ||
| 37872 | + ); | ||
| 37873 | + return font.getFont(); | ||
| 37874 | + } | ||
| 37875 | + | ||
| 37876 | + /// @nodoc | ||
| 37877 | + /// Noto Sans TC Black 900 | ||
| 37878 | + static Future<Font> notoSansTCBlack() { | ||
| 37879 | + const font = PdfGoogleFonts._( | ||
| 37880 | + 'https://fonts.gstatic.com/s/notosanstc/v36/-nFuOG829Oofr2wohFbTp9ifNAn722rq0MXz7wm1_Co.ttf', | ||
| 37881 | + 'NotoSansTC-Black', | ||
| 37882 | + ); | ||
| 37883 | + return font.getFont(); | ||
| 37884 | + } | ||
| 37885 | + | ||
| 37886 | + /// @nodoc | ||
| 37887 | + /// Noto Sans SC Thin 100 | ||
| 37888 | + static Future<Font> notoSansSCThin() { | ||
| 37889 | + const font = PdfGoogleFonts._( | ||
| 37890 | + 'https://fonts.gstatic.com/s/notosanssc/v37/k3kCo84MPvpLmixcA63oeAL7Iqp5IZJF9bmaG9_EnYw.ttf', | ||
| 37891 | + 'NotoSansSC-Thin', | ||
| 37892 | + ); | ||
| 37893 | + return font.getFont(); | ||
| 37894 | + } | ||
| 37895 | + | ||
| 37896 | + /// @nodoc | ||
| 37897 | + /// Noto Sans SC ExtraLight 200 | ||
| 37898 | + static Future<Font> notoSansSCExtraLight() { | ||
| 37899 | + const font = PdfGoogleFonts._( | ||
| 37900 | + 'https://fonts.gstatic.com/s/notosanssc/v37/k3kCo84MPvpLmixcA63oeAL7Iqp5IZJF9bmaG1_FnYw.ttf', | ||
| 37901 | + 'NotoSansSC-ExtraLight', | ||
| 37902 | + ); | ||
| 37903 | + return font.getFont(); | ||
| 37904 | + } | ||
| 37905 | + | ||
| 37906 | + /// @nodoc | ||
| 37907 | + /// Noto Sans SC Light 300 | ||
| 37908 | + static Future<Font> notoSansSCLight() { | ||
| 37909 | + const font = PdfGoogleFonts._( | ||
| 37910 | + 'https://fonts.gstatic.com/s/notosanssc/v37/k3kCo84MPvpLmixcA63oeAL7Iqp5IZJF9bmaG4HFnYw.ttf', | ||
| 37911 | + 'NotoSansSC-Light', | ||
| 37912 | + ); | ||
| 37913 | + return font.getFont(); | ||
| 37914 | + } | ||
| 37915 | + | ||
| 37916 | + /// @nodoc | ||
| 37917 | + /// Noto Sans SC Regular 400 | ||
| 37918 | + static Future<Font> notoSansSCRegular() { | ||
| 37919 | + const font = PdfGoogleFonts._( | ||
| 37920 | + 'https://fonts.gstatic.com/s/notosanssc/v37/k3kCo84MPvpLmixcA63oeAL7Iqp5IZJF9bmaG9_FnYw.ttf', | ||
| 37921 | + 'NotoSansSC-Regular', | ||
| 37922 | + ); | ||
| 37923 | + return font.getFont(); | ||
| 37924 | + } | ||
| 37925 | + | ||
| 37926 | + /// @nodoc | ||
| 37927 | + /// Noto Sans SC Medium 500 | ||
| 37928 | + static Future<Font> notoSansSCMedium() { | ||
| 37929 | + const font = PdfGoogleFonts._( | ||
| 37930 | + 'https://fonts.gstatic.com/s/notosanssc/v37/k3kCo84MPvpLmixcA63oeAL7Iqp5IZJF9bmaG-3FnYw.ttf', | ||
| 37931 | + 'NotoSansSC-Medium', | ||
| 37932 | + ); | ||
| 37933 | + return font.getFont(); | ||
| 37934 | + } | ||
| 37935 | + | ||
| 37936 | + /// @nodoc | ||
| 37937 | + /// Noto Sans SC SemiBold 600 | ||
| 37938 | + static Future<Font> notoSansSCSemiBold() { | ||
| 37939 | + const font = PdfGoogleFonts._( | ||
| 37940 | + 'https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@600&display=swap', | ||
| 37941 | + 'NotoSansSC-SemiBold', | ||
| 37942 | + ); | ||
| 37943 | + return font.getFont(); | ||
| 37944 | + } | ||
| 37945 | + | ||
| 37946 | + /// @nodoc | ||
| 37947 | + /// Noto Sans SC Bold 700 | ||
| 37948 | + static Future<Font> notoSansSCBold() { | ||
| 37949 | + const font = PdfGoogleFonts._( | ||
| 37950 | + 'https://fonts.gstatic.com/s/notosanssc/v37/k3kCo84MPvpLmixcA63oeAL7Iqp5IZJF9bmaGzjCnYw.ttf', | ||
| 37951 | + 'NotoSansSC-Bold', | ||
| 37952 | + ); | ||
| 37953 | + return font.getFont(); | ||
| 37954 | + } | ||
| 37955 | + | ||
| 37956 | + /// @nodoc | ||
| 37957 | + /// Noto Sans SC ExtraBold 800 | ||
| 37958 | + static Future<Font> notoSansSCExtraBold() { | ||
| 37959 | + const font = PdfGoogleFonts._( | ||
| 37960 | + 'https://fonts.gstatic.com/s/notosanssc/v37/k3kCo84MPvpLmixcA63oeAL7Iqp5IZJF9bmaG1_CnYw.ttf', | ||
| 37961 | + 'NotoSansSC-ExtraBold', | ||
| 37962 | + ); | ||
| 37963 | + return font.getFont(); | ||
| 37964 | + } | ||
| 37965 | + | ||
| 37966 | + /// @nodoc | ||
| 37967 | + /// Noto Sans SC Black 900 | ||
| 37968 | + static Future<Font> notoSansSCBlack() { | ||
| 37969 | + const font = PdfGoogleFonts._( | ||
| 37970 | + 'https://fonts.gstatic.com/s/notosanssc/v37/k3kCo84MPvpLmixcA63oeAL7Iqp5IZJF9bmaG3bCnYw.ttf', | ||
| 37971 | + 'NotoSansSC-Black', | ||
| 37972 | + ); | ||
| 37973 | + return font.getFont(); | ||
| 37974 | + } | ||
| 37975 | + | ||
| 37976 | + /// @nodoc | ||
| 37779 | /// Noto Sans Adlam regular | 37977 | /// Noto Sans Adlam regular |
| 37780 | static Future<Font> notoSansAdlamRegular() { | 37978 | static Future<Font> notoSansAdlamRegular() { |
| 37781 | const font = PdfGoogleFonts._( | 37979 | const font = PdfGoogleFonts._( |
-
Please register or login to post a comment