Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
380a30b
commit 8650de1
Showing
13 changed files
with
78 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE fontconfig SYSTEM 'fonts.dtd'><fontconfig> | ||
<!--- Myanmar Font Switcher configuration. --> | ||
<match target="pattern"> | ||
<test compare="eq" name="lang" qual="any"><string>my</string></test> | ||
<edit mode="assign" name="family"> | ||
<string>Noto Sans Myanmar</string> | ||
</edit> | ||
</match> | ||
<!--- Please do not modify the above lines. You can add additional configuration below. --> | ||
</fontconfig> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
FONT=$(zenity --list --radiolist --title="Myanmar Font Switcher" --text="Choose a System Fallback Font you like..." --column="Check:" --column="Font Name:" TRUE "Myanmar3" FALSE "TharLon" FALSE "Zawgyi-One" FALSE "Noto Sans Myanmar" FALSE "Myanmar Census" FALSE "MON3 Anonta 1") | ||
|
||
CONFIG=~/.config/fontconfig/fonts.conf | ||
if [[ $FONT ]]; then | ||
if [ -f ~/.fonts.conf ]; then | ||
rm ~/.fonts.conf | ||
cp /usr/share/mmfs/fonts.conf $CONFIG | ||
echo ".fonts.conf is deprecated. Replaced new config in .config/fontconfig" | ||
fi | ||
if [ ! -f $CONFIG ]; then | ||
mkdir -p ~/.config/fontconfig | ||
cp /usr/share/mmfs/fonts.conf $CONFIG | ||
echo "Found no config. Created new." | ||
fi | ||
sed -i "s/Myanmar3/$FONT/g" $CONFIG | ||
sed -i "s/TharLon/$FONT/g" $CONFIG | ||
sed -i "s/Zawgyi-One/$FONT/g" $CONFIG | ||
sed -i "s/Noto Sans Myanmar/$FONT/g" $CONFIG | ||
sed -i "s/Myanmar Census/$FONT/g" $CONFIG | ||
sed -i "s/MON3 Anonta 1/$FONT/g" $CONFIG | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Desktop Entry] | ||
Name=Myanmar Font Switcher | ||
Comment=Change Myanmar fonts as System Fallback Font | ||
Keywords=fonts;switcher;myanmar;unicode; | ||
Icon=preferences-desktop-font | ||
Exec=mmfs %u | ||
Terminal=false | ||
Type=Application | ||
StartupNotify=true | ||
Categories=GTK;GNOME;Utility; |
Empty file.
Empty file.