Skip to content

Commit

Permalink
Merge pull request #4484 from jtanx/ver
Browse files Browse the repository at this point in the history
Update version tags
  • Loading branch information
jtanx committed Nov 7, 2020
2 parents 15df2e0 + ace0b37 commit 21ad4a1
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
build/
contrib/admintools/splashimage.c

.vscode/
.vs/
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
endif()

# Update the version for each new release
project(fontforge VERSION 20200314 LANGUAGES C CXX)
project(fontforge VERSION 20201107 LANGUAGES C CXX)

# Add folder for custom cmake modules
list(INSERT CMAKE_MODULE_PATH 0 ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_SOURCE_DIR}/cmake/packages)
Expand Down
81 changes: 81 additions & 0 deletions contrib/admintools/gen_splash.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
#!/usr/bin/env python3

from PIL import Image
import sys
import textwrap

TEMPLATE = """/* Copyright (C) 2000-2012 by George Williams
* Image replaced in 2019 by @ctrlcctrlv (Fred Brennan) */
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
* EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <fontforge-config.h>
#include "gimage.h"
static uint8 splashimage0_data[] = {{
{data}
}};
static struct _GImage splashimage0_base = {{
it_true,
0,
{width},
{height},
{bytes_per_line},
(uint8 *) splashimage0_data,
NULL,
0xffffffff
}};
GImage splashimage = {{ 0, {{ &splashimage0_base }}, NULL }};
"""

if __name__ == "__main__":
if len(sys.argv) != 2:
print("Usage: {} input.png".format(sys.argv[0]))
sys.exit(-1)

img = Image.open(sys.argv[1]).convert("RGB")
data = ", ".join(
"0x{:02x}, 0x{:02x}, 0x{:02x}, 0xff".format(b, g, r)
for r, g, b in img.getdata()
)
wrapper = textwrap.TextWrapper(
width=79,
break_long_words=False,
)
data = "\n".join(wrapper.wrap(data))

with open("splashimage.c", "w") as fp:
fp.write(
TEMPLATE.format(
data=data,
width=img.width,
height=img.height,
bytes_per_line=img.width * 4,
)
)
1 change: 1 addition & 0 deletions desktop/org.fontforge.FontForge.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<update_contact>fontforge-devel@lists.sourceforge.net</update_contact>
<content_rating type="oars-1.1" />
<releases>
<release date="2020-11-07" version="20201107" />
<release date="2020-03-14" version="20200314" />
<release date="2019-08-01" version="20190801" />
<release date="2019-04-13" version="20190413" />
Expand Down
2 changes: 1 addition & 1 deletion doc/sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
author = 'FontForge authors'

# The full version, including alpha/beta/rc tags
release = '20200314'
release = '20201107'


# -- General configuration ---------------------------------------------------
Expand Down

0 comments on commit 21ad4a1

Please sign in to comment.