Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4131 move truetype fonts into main codebase sourceforge has ssl errors #4132

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added config_repo/overlay/system_fonts/Andale_Mono.ttf
Binary file not shown.
Binary file added config_repo/overlay/system_fonts/Arial.ttf
Binary file not shown.
Binary file added config_repo/overlay/system_fonts/Arial_Black.ttf
Binary file not shown.
Binary file added config_repo/overlay/system_fonts/Arial_Bold.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added config_repo/overlay/system_fonts/Courier_New.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added config_repo/overlay/system_fonts/Georgia.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added config_repo/overlay/system_fonts/Impact.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added config_repo/overlay/system_fonts/Verdana.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added config_repo/overlay/system_fonts/Webdings.ttf
Binary file not shown.
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/andalemo.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/arial.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/arialbd.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/arialbi.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/ariali.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/ariblk.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/comic.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/comicbd.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/cour.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/courbd.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/courbi.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/couri.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/georgia.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/georgiab.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/georgiai.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/georgiaz.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/impact.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/times.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/timesbd.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/timesbi.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/timesi.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/trebuc.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/trebucbd.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/trebucbi.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/trebucit.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/verdana.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/verdanab.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/verdanai.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/verdanaz.ttf
1 change: 1 addition & 0 deletions config_repo/overlay/system_fonts/webdings.ttf
21 changes: 0 additions & 21 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2953,26 +2953,6 @@ do_update()
exit_installation 0 "${STATUS_OK}" "Update completed."
}

####
# Install the Truetype fonts
install_fonts()
{
declare -n v="${FUNCNAME[0]}"
if [[ ${v} == "true" ]]; then
display_msg --logonly info "Fonts already installed"
return
fi
[[ ${SKIP} == "true" ]] && return

display_msg --log progress "Installing Truetype fonts."
TMP="${ALLSKY_LOGS}/msttcorefonts.log"
local M="Truetype fonts failed"
run_aptGet msttcorefonts > "${TMP}" 2>&1
check_success $? "${M}" "${TMP}" "${DEBUG}" || exit_with_image 1 "${STATUS_ERROR}" "${M}"

STATUS_VARIABLES+=( "${FUNCNAME[0]}='true'\n" )
}

####
# Install the overlay and modules system
install_PHP_modules()
Expand Down Expand Up @@ -3836,7 +3816,6 @@ set_locale
create_allsky_logs "true" # "true" == do everything

##### Install the overlay and modules system and things it needs
install_fonts
install_PHP_modules
install_Python
install_overlay
Expand Down
4 changes: 2 additions & 2 deletions scripts/modules/allsky_overlay.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,8 @@ def _timer(self, text, showIntermediate=True, showMessage=True):
s.log(4, f"INFO: {text} Elapsed time {elapsedTime.total_seconds():.6f} seconds")

def _getFont(self, font, fontSize):

tt = '/usr/share/fonts/truetype/msttcorefonts'
tt = os.path.join(s.ALLSKY_OVERLAY, 'system_fonts')
systemFontMapCased = {
'Arial': {'fontpath': f'{tt}/Arial.ttf'},
'Arial Black': {'fontpath': f'{tt}/Arial_Black.ttf'},
Expand Down
Loading